Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Tweoss committed Jan 29, 2024
1 parent c001c5a commit 085c593
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/egui_demo_lib/src/demo/pan_zoom.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use egui::{Area, Sense};

#[derive(Clone, Default, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
pub struct PanZoom {
Expand Down Expand Up @@ -57,7 +55,7 @@ impl super::View for PanZoom {
}

let current_size = ui.min_rect();
let layer_ids = [
[
(
current_size.left_top() + egui::Vec2::new(10.0, 10.0),
"top left!",
Expand All @@ -77,7 +75,7 @@ impl super::View for PanZoom {
]
.iter()
.map(|(pos, msg)| {
Area::new(*msg)
egui::Area::new(*msg)
.default_pos(*pos)
// Need to cover up the pan_zoom demo window,
// but may also cover over other windows.
Expand Down

0 comments on commit 085c593

Please sign in to comment.