Skip to content

Commit

Permalink
Fix MSRV and GNUStep CI
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Jan 11, 2025
1 parent ff0d74c commit d39968e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions framework-crates/objc2-core-foundation/src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ impl From<CFComparisonResult> for Ordering {
..=-1 => Self::Less, // ..=CFComparisonResult::CompareLessThan
0 => Self::Equal, // CFComparisonResult::CompareEqualTo
1.. => Self::Greater, // CFComparisonResult::CompareGreaterThan..
#[allow(unreachable_patterns)] // MSRV between 1.73 and 1.76
_ => Self::Equal,
}
}
}
2 changes: 2 additions & 0 deletions framework-crates/objc2-core-foundation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
// Update in Cargo.toml as well.
#![doc(html_root_url = "https://docs.rs/objc2-core-foundation/0.2.2")]
// Debug won't be implemented if `CFBase` feature is disabled.
#![allow(missing_debug_implementations)]

#[cfg(feature = "alloc")]
extern crate alloc;
Expand Down

0 comments on commit d39968e

Please sign in to comment.