mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
Update MSRV to Rust 1.70.0 (#3310)
* Update to Rust 1.70 * Fix renamed clippy lint * Use let-else more * Code cleanup * Remove derelict Safety comments * Enable more clippy lints
This commit is contained in:
@@ -4,7 +4,7 @@ version = "0.22.0"
|
||||
authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"]
|
||||
description = "An easy-to-use immediate mode GUI that runs on both web and native"
|
||||
edition = "2021"
|
||||
rust-version = "1.67"
|
||||
rust-version = "1.70"
|
||||
homepage = "https://github.com/emilk/egui"
|
||||
license = "MIT OR Apache-2.0"
|
||||
readme = "../../README.md"
|
||||
|
||||
@@ -449,7 +449,9 @@ impl Focus {
|
||||
}
|
||||
});
|
||||
|
||||
let current_rect = *self.focus_widgets_cache.get(&focus_id).unwrap();
|
||||
let Some(current_rect) = self.focus_widgets_cache.get(&focus_id) else {
|
||||
return None;
|
||||
};
|
||||
|
||||
let mut best_score = std::f32::INFINITY;
|
||||
let mut best_id = None;
|
||||
|
||||
Reference in New Issue
Block a user