From e38d56ee4290c59c7e0725726a6dfbb8a0a2a0bb Mon Sep 17 00:00:00 2001 From: Sebastian Imlay Date: Tue, 16 Aug 2022 09:34:48 -0400 Subject: [PATCH] fix fmt --- src/color/mod.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/color/mod.rs b/src/color/mod.rs index 2f0f70a..0f46cd2 100644 --- a/src/color/mod.rs +++ b/src/color/mod.rs @@ -247,13 +247,9 @@ impl Color { let b = blue as CGFloat / 255.0; let a = alpha as CGFloat / 255.0; #[cfg(feature = "appkit")] - let ptr = unsafe { - Id::from_ptr(msg_send![class!(NSColor), colorWithCalibratedRed:r green:g blue:b alpha:a]) - }; + let ptr = unsafe { Id::from_ptr(msg_send![class!(NSColor), colorWithCalibratedRed:r green:g blue:b alpha:a]) }; #[cfg(all(feature = "uikit", not(feature = "appkit")))] - let ptr = unsafe { - Id::from_ptr(msg_send![class!(UIColor), colorWithRed:r green:g blue:b alpha:a]) - }; + let ptr = unsafe { Id::from_ptr(msg_send![class!(UIColor), colorWithRed:r green:g blue:b alpha:a]) }; Color::Custom(Arc::new(RwLock::new(ptr))) }