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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user