mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 23:00:04 -04:00
Update MSRV from 1.92 to 1.95 (#8348)
No particular reason --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -3506,7 +3506,7 @@ impl Context {
|
||||
if !is_visible {
|
||||
continue;
|
||||
}
|
||||
let text = format!("{} - {:?}", layer_id.short_debug_format(), area.rect(),);
|
||||
let text = format!("{} - {:?}", layer_id.short_debug_format(), area.rect());
|
||||
// TODO(emilk): `Sense::hover_highlight()`
|
||||
let response =
|
||||
ui.add(Label::new(RichText::new(text).monospace()).sense(Sense::click()));
|
||||
|
||||
@@ -201,8 +201,6 @@ fn contains_circle(interact_rect: emath::Rect, pos: Pos2, radius: f32) -> bool {
|
||||
}
|
||||
|
||||
fn hit_test_on_close(close: &[WidgetRect], pos: Pos2) -> WidgetHits {
|
||||
#![expect(clippy::collapsible_else_if)]
|
||||
|
||||
// First find the best direct hits:
|
||||
let hit_click = find_closest_within(
|
||||
close.iter().copied().filter(|w| w.sense.senses_click()),
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
//! Try the live web demo: <https://www.egui.rs/#demo>. Read more about egui at <https://github.com/emilk/egui>.
|
||||
//!
|
||||
//! `egui` is in heavy development, with each new version having breaking changes.
|
||||
//! You need to have rust 1.92.0 or later to use `egui`.
|
||||
//! You need to have rust 1.95.0 or later to use `egui`.
|
||||
//!
|
||||
//! To quickly get started with egui, you can take a look at [`eframe_template`](https://github.com/emilk/eframe_template)
|
||||
//! which uses [`eframe`](https://docs.rs/eframe).
|
||||
|
||||
@@ -1460,9 +1460,9 @@ fn order_map_total_ordering() {
|
||||
// Assert that `areas.compare_order()` forms a total ordering
|
||||
let mut equivalence_classes = vec![0];
|
||||
let mut i = 0;
|
||||
for l in layers.windows(2) {
|
||||
assert!(l[0].order <= l[1].order, "does not follow LayerId.order");
|
||||
if areas.compare_order(l[0], l[1]) != std::cmp::Ordering::Equal {
|
||||
for &[a, b] in layers.array_windows() {
|
||||
assert!(a.order <= b.order, "does not follow LayerId.order");
|
||||
if areas.compare_order(a, b) != std::cmp::Ordering::Equal {
|
||||
i += 1;
|
||||
}
|
||||
equivalence_classes.push(i);
|
||||
|
||||
@@ -134,9 +134,8 @@ where
|
||||
if self.has_undo(current_state) {
|
||||
self.flux = None;
|
||||
|
||||
if self.undos.back() == Some(current_state) {
|
||||
#[expect(clippy::unwrap_used)] // we just checked that undos is not empty
|
||||
self.redos.push(self.undos.pop_back().unwrap());
|
||||
if let Some(state) = self.undos.pop_back_if(|state| &*state == current_state) {
|
||||
self.redos.push(state);
|
||||
} else {
|
||||
self.redos.push(current_state.clone());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user