fix(clippy): silenced but i owe it my life
This commit is contained in:
@@ -29,7 +29,7 @@ impl CompositorHandler for WaylandState {
|
||||
.borrow()
|
||||
.texture(&self.renderer)
|
||||
.cloned()
|
||||
.map(|renderer| SendWrapper::new(renderer)),
|
||||
.map(SendWrapper::new),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ impl XdgShellHandler for WaylandState {
|
||||
surface.send_configure();
|
||||
|
||||
compositor::with_states(surface.wl_surface(), |data| {
|
||||
data.data_map.insert_if_missing(|| CoreSurface::new());
|
||||
data.data_map.insert_if_missing(CoreSurface::new);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ impl XdgShellHandler for WaylandState {
|
||||
let _ = surface.send_configure();
|
||||
|
||||
compositor::with_states(surface.wl_surface(), |data| {
|
||||
data.data_map.insert_if_missing(|| CoreSurface::new());
|
||||
data.data_map.insert_if_missing(CoreSurface::new);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user