Rename ControlFlow variant from Complete to Break

This commit is contained in:
mitchmindtree 2017-06-20 21:25:53 +10:00
parent df1276d72a
commit 04ccad1dbc
13 changed files with 28 additions and 28 deletions

View file

@ -23,7 +23,7 @@ fn main() {
}
},
Event::WindowEvent { event: WindowEvent::Closed, .. } => {
return ControlFlow::Complete;
return ControlFlow::Break;
},
_ => ()
}

View file

@ -37,10 +37,10 @@ fn main() {
match event {
Event::WindowEvent { event, .. } => {
match event {
WindowEvent::Closed => return ControlFlow::Complete,
WindowEvent::Closed => return ControlFlow::Break,
WindowEvent::KeyboardInput {
input: winit::KeyboardInput { virtual_keycode: Some(winit::VirtualKeyCode::Escape), .. }, ..
} => return ControlFlow::Complete,
} => return ControlFlow::Break,
_ => ()
}
},

View file

@ -28,7 +28,7 @@ fn main() {
}
},
WindowEvent::Closed => return ControlFlow::Complete,
WindowEvent::Closed => return ControlFlow::Break,
a @ WindowEvent::MouseMoved { .. } => {
println!("{:?}", a);

View file

@ -13,7 +13,7 @@ fn main() {
println!("{:?}", event);
match event {
winit::Event::WindowEvent { event: winit::WindowEvent::Closed, .. } => winit::ControlFlow::Complete,
winit::Event::WindowEvent { event: winit::WindowEvent::Closed, .. } => winit::ControlFlow::Break,
_ => winit::ControlFlow::Continue,
}
});

View file

@ -24,7 +24,7 @@ fn main() {
num_windows -= 1;
if num_windows == 0 {
return winit::ControlFlow::Complete;
return winit::ControlFlow::Break;
}
},
_ => (),

View file

@ -22,7 +22,7 @@ fn main() {
println!("{:?}", event);
match event {
winit::Event::WindowEvent { event: winit::WindowEvent::Closed, .. } =>
winit::ControlFlow::Complete,
winit::ControlFlow::Break,
_ => winit::ControlFlow::Continue,
}
});

View file

@ -13,7 +13,7 @@ fn main() {
println!("{:?}", event);
match event {
winit::Event::WindowEvent { event: winit::WindowEvent::Closed, .. } => winit::ControlFlow::Complete,
winit::Event::WindowEvent { event: winit::WindowEvent::Closed, .. } => winit::ControlFlow::Break,
_ => winit::ControlFlow::Continue,
}
});

View file

@ -13,7 +13,7 @@ fn main() {
match event {
winit::Event::WindowEvent { event: winit::WindowEvent::Closed, .. } => {
winit::ControlFlow::Complete
winit::ControlFlow::Break
},
_ => winit::ControlFlow::Continue,
}