1
0
Fork 0
forked from wry/wry

all: fix clippy lints

This commit is contained in:
Julian Orth 2022-11-03 19:26:35 +01:00
parent 729e47a756
commit e61d6ab074
4 changed files with 6 additions and 6 deletions

View file

@ -43,11 +43,11 @@ static PW_FORMATS_MAP: Lazy<AHashMap<SpaVideoFormat, &'static Format>> = Lazy::n
}); });
pub fn formats() -> &'static AHashMap<u32, &'static Format> { pub fn formats() -> &'static AHashMap<u32, &'static Format> {
&*FORMATS_MAP &FORMATS_MAP
} }
pub fn pw_formats() -> &'static AHashMap<SpaVideoFormat, &'static Format> { pub fn pw_formats() -> &'static AHashMap<SpaVideoFormat, &'static Format> {
&*PW_FORMATS_MAP &PW_FORMATS_MAP
} }
const fn fourcc_code(a: char, b: char, c: char, d: char) -> u32 { const fn fourcc_code(a: char, b: char, c: char, d: char) -> u32 {

View file

@ -1155,7 +1155,7 @@ impl Node for WlSurface {
} }
fn node_on_axis_event(self: Rc<Self>, seat: &Rc<WlSeatGlobal>, event: &PendingScroll) { fn node_on_axis_event(self: Rc<Self>, seat: &Rc<WlSeatGlobal>, event: &PendingScroll) {
seat.scroll_surface(&*self, event); seat.scroll_surface(&self, event);
} }
fn node_on_focus(self: Rc<Self>, seat: &Rc<WlSeatGlobal>) { fn node_on_focus(self: Rc<Self>, seat: &Rc<WlSeatGlobal>) {
@ -1179,7 +1179,7 @@ impl Node for WlSurface {
} }
fn node_on_pointer_motion(self: Rc<Self>, seat: &Rc<WlSeatGlobal>, x: Fixed, y: Fixed) { fn node_on_pointer_motion(self: Rc<Self>, seat: &Rc<WlSeatGlobal>, x: Fixed, y: Fixed) {
seat.motion_surface(&*self, x, y) seat.motion_surface(&self, x, y)
} }
fn node_on_pointer_relative_motion( fn node_on_pointer_relative_motion(

View file

@ -256,7 +256,7 @@ unsafe fn query_formats(dpy: EGLDisplay) -> Result<AHashMap<u32, EglFormat>, Ren
res.insert( res.insert(
format.drm, format.drm,
EglFormat { EglFormat {
format: *format, format,
implicit_external_only: external_only, implicit_external_only: external_only,
modifiers, modifiers,
}, },

View file

@ -54,7 +54,7 @@ impl UsrLinuxDmabuf {
if let Some(owner) = self.owner.get() { if let Some(owner) = self.owner.get() {
if let Some(format) = formats().get(&ev.format) { if let Some(format) = formats().get(&ev.format) {
owner.modifier( owner.modifier(
*format, format,
(ev.modifier_hi as u64) << 32 | (ev.modifier_lo as u64), (ev.modifier_hi as u64) << 32 | (ev.modifier_lo as u64),
); );
} }