Skip to content

Commit

Permalink
Fix no_std in CoreFoundation
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Dec 20, 2024
1 parent b510931 commit 045ba49
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions framework-crates/objc2-core-foundation/src/geometry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,6 @@ impl CGRect {

/// Returns a rectangle with a positive width and height.
///
/// This is often useful
///
///
/// # Examples
///
Expand All @@ -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())
}
Expand Down

0 comments on commit 045ba49

Please sign in to comment.