From eb591f9c72f0d8184f6dae430ec908942ae3d98a Mon Sep 17 00:00:00 2001 From: Taylor Holliday Date: Thu, 14 Dec 2023 10:53:02 -0800 Subject: [PATCH] fmt --- src/modifiers.rs | 10 ++++++++-- src/views/drag.rs | 7 +------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/modifiers.rs b/src/modifiers.rs index d00c948..5df06d5 100644 --- a/src/modifiers.rs +++ b/src/modifiers.rs @@ -1,4 +1,3 @@ - use crate::*; use accesskit::Role; use std::marker::PhantomData; @@ -56,7 +55,14 @@ pub trait Modifiers: View + Sized { b: B, f: F, ) -> Drag> { - Drag::new(self, DragFuncS { f, b, phantom: PhantomData::default() }) + Drag::new( + self, + DragFuncS { + f, + b, + phantom: PhantomData::default(), + }, + ) } /// Calls a function in response to a mouse hovering. diff --git a/src/views/drag.rs b/src/views/drag.rs index 72c4aac..cd4049d 100644 --- a/src/views/drag.rs +++ b/src/views/drag.rs @@ -83,12 +83,7 @@ impl< button: Option, actions: &mut Vec>, ) { - actions.push(Box::new((self.f)( - self.b.get_mut(cx), - delta, - state, - button, - ))) + actions.push(Box::new((self.f)(self.b.get_mut(cx), delta, state, button))) } }