Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
coderedart committed Jan 23, 2024
1 parent daf8cb2 commit 0f01211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/egui_window_glfw_passthrough/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ pub fn layout_based_glfw_to_egui_key(key: glfw::Key, scancode: i32) -> Option<Ke
| glfw::Key::KpAdd
| glfw::Key::KpEqual => {
let name = glfw::get_key_name(Some(key), Some(scancode));
name.map(|n| egui::Key::from_name(&n)).flatten()
name.and_then(|n| egui::Key::from_name(&n))
}
_ => layout_independent_glfw_to_egui_key(key),
}
Expand Down

0 comments on commit 0f01211

Please sign in to comment.