Skip to content

Commit 8f2f4a4

Browse files
committed
Fix clippy nightly
1 parent 47b750b commit 8f2f4a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

objc2-encode/src/parse.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pub(crate) fn rm_enc_prefix<'a>(s: &'a str, enc: &Encoding<'_>) -> Option<&'a st
8383

8484
fn chomp_int(s: &str) -> Option<(usize, &str)> {
8585
// Chomp until we hit a non-digit
86-
let (num, t) = match s.find(|c: char| !c.is_digit(10)) {
86+
let (num, t) = match s.find(|c: char| !c.is_ascii_digit()) {
8787
Some(i) => s.split_at(i),
8888
None => (s, ""),
8989
};

objc2/src/rc/test_object.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::runtime::{Bool, Class, Object, Sel};
88
use crate::{msg_send, msg_send_bool};
99
use crate::{Encoding, Message, RefEncode};
1010

11-
#[derive(Debug, Clone, Default, PartialEq)]
11+
#[derive(Debug, Clone, Default, PartialEq, Eq)]
1212
pub(crate) struct ThreadTestData {
1313
pub(crate) alloc: usize,
1414
pub(crate) dealloc: usize,

0 commit comments

Comments
 (0)