Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Jul 9, 2023
1 parent 852b2db commit 6ce2512
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
13 changes: 7 additions & 6 deletions src/egui_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,13 @@ impl Node for EguiNode {
return Ok(()); // No window
};

let swap_chain_texture_view =
if let Some(swap_chain_texture_view) = extracted_window.swap_chain_texture_view.as_ref() {
swap_chain_texture_view
} else {
return Ok(()); // No swapchain texture
};
let swap_chain_texture_view = if let Some(swap_chain_texture_view) =
extracted_window.swap_chain_texture_view.as_ref()
{
swap_chain_texture_view
} else {
return Ok(()); // No swapchain texture
};

let render_queue = world.get_resource::<RenderQueue>().unwrap();

Expand Down
4 changes: 3 additions & 1 deletion src/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ pub fn process_input_system(
let shift = input_resources.keyboard_input.pressed(KeyCode::ShiftLeft)
|| input_resources.keyboard_input.pressed(KeyCode::ShiftRight);
let ctrl = input_resources.keyboard_input.pressed(KeyCode::ControlLeft)
|| input_resources.keyboard_input.pressed(KeyCode::ControlRight);
|| input_resources
.keyboard_input
.pressed(KeyCode::ControlRight);
let alt = input_resources.keyboard_input.pressed(KeyCode::AltLeft)
|| input_resources.keyboard_input.pressed(KeyCode::AltRight);
let win = input_resources.keyboard_input.pressed(KeyCode::SuperLeft)
Expand Down

0 comments on commit 6ce2512

Please sign in to comment.