From 045ba493e1964173ed68f0713fae4e2ed1114eac Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Fri, 20 Dec 2024 12:33:30 +0100 Subject: [PATCH] Fix no_std in CoreFoundation --- framework-crates/objc2-core-foundation/src/geometry.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework-crates/objc2-core-foundation/src/geometry.rs b/framework-crates/objc2-core-foundation/src/geometry.rs index 37ef0ce5f..bcc0833f7 100644 --- a/framework-crates/objc2-core-foundation/src/geometry.rs +++ b/framework-crates/objc2-core-foundation/src/geometry.rs @@ -248,8 +248,6 @@ impl CGRect { /// Returns a rectangle with a positive width and height. /// - /// This is often useful - /// /// /// # Examples /// @@ -262,6 +260,7 @@ impl CGRect { /// ``` #[inline] #[doc(alias = "CGRectStandardize")] + #[cfg(feature = "std")] // `abs` only available in core since Rust 1.85 pub fn standardize(self) -> Self { Self::new(self.origin, self.size.abs()) }