mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Fix "fullscreen" example with latest rustc
This commit is contained in:
parent
03e9d78b3a
commit
106ca8a30a
|
@ -24,7 +24,7 @@ fn main() {
|
||||||
|
|
||||||
print!("Please write the number of the monitor to use: ");
|
print!("Please write the number of the monitor to use: ");
|
||||||
let num = stdin().read_line().unwrap().as_slice().trim().parse()
|
let num = stdin().read_line().unwrap().as_slice().trim().parse()
|
||||||
.expect("Plase enter a number");
|
.ok().expect("Please enter a number");
|
||||||
let monitor = glutin::get_available_monitors().nth(num).expect("Please enter a valid ID");
|
let monitor = glutin::get_available_monitors().nth(num).expect("Please enter a valid ID");
|
||||||
|
|
||||||
println!("Using {:?}", monitor.get_name());
|
println!("Using {:?}", monitor.get_name());
|
||||||
|
|
Loading…
Reference in a new issue