File tree 3 files changed +5
-2
lines changed
icrate/src/Foundation/additions
3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,8 @@ jobs:
150
150
run : cargo doc --no-deps --document-private-items ${{ matrix.args }}
151
151
152
152
- name : cargo clippy
153
- run : cargo clippy --all-targets ${{ matrix.args }}
153
+ # Temporarily allow diverging_sub_expression until we figure out how to silence them in declare_class!
154
+ run : cargo clippy --all-targets ${{ matrix.args }} -- --allow=clippy::diverging_sub_expression
154
155
155
156
msrv :
156
157
name : Check MSRV
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ impl Ord for NSString {
192
192
impl PartialOrd for NSMutableString {
193
193
#[ inline]
194
194
fn partial_cmp ( & self , other : & Self ) -> Option < cmp:: Ordering > {
195
- PartialOrd :: partial_cmp ( & * * self , & * * other)
195
+ Some ( self . cmp ( other) )
196
196
}
197
197
}
198
198
Original file line number Diff line number Diff line change @@ -231,6 +231,8 @@ impl<T: ?Sized + Message> Id<T> {
231
231
/// This is an associated method, and must be called as
232
232
/// `Id::as_mut_ptr(obj)`.
233
233
#[ inline]
234
+ #[ allow( unknown_lints) ] // New lint below
235
+ #[ allow( clippy:: needless_pass_by_ref_mut) ]
234
236
pub fn as_mut_ptr ( this : & mut Self ) -> * mut T
235
237
where
236
238
T : IsMutable ,
You can’t perform that action at this time.
0 commit comments