Enable clippy, suppress lots, fix a couple. (#703)

This enables clippy in CI and suppresses most of the existing
warnings. We can drill down and fix those later, but this will
help start getting things under control.
This commit is contained in:
Bruce Mitchener
2024-08-13 11:25:49 +07:00
committed by GitHub
parent 39a39555c0
commit fb71d45b30
14 changed files with 49 additions and 7 deletions
+3
View File
@@ -12,6 +12,9 @@ rust-version.workspace = true
[package.metadata.docs.rs]
default-target = "x86_64-apple-darwin"
[lints]
workspace = true
[dependencies]
core-foundation.workspace = true
core-graphics-types.workspace = true
+1 -1
View File
@@ -26,7 +26,7 @@ pub type NSInteger = core::ffi::c_long;
#[cfg(target_pointer_width = "64")]
pub type NSUInteger = core::ffi::c_ulong;
pub const NSIntegerMax: NSInteger = NSInteger::max_value();
pub const NSIntegerMax: NSInteger = NSInteger::MAX;
pub const NSNotFound: NSInteger = NSIntegerMax;
const UTF8_ENCODING: usize = 4;