Skip to content

Commit

Permalink
Fix clippy nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Jun 14, 2022
1 parent 7948b63 commit 6ed3325
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion objc2-encode/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub(crate) fn rm_enc_prefix<'a>(s: &'a str, enc: &Encoding<'_>) -> Option<&'a st

fn chomp_int(s: &str) -> Option<(usize, &str)> {
// Chomp until we hit a non-digit
let (num, t) = match s.find(|c: char| !c.is_digit(10)) {
let (num, t) = match s.find(|c: char| !c.is_ascii_digit()) {
Some(i) => s.split_at(i),
None => (s, ""),
};
Expand Down
1 change: 1 addition & 0 deletions objc2-foundation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#![allow(clippy::missing_safety_doc)] // TODO: Remove this
#![warn(clippy::cargo)]
#![warn(clippy::ptr_as_ptr)]
#![allow(clippy::let_unit_value)] // let _: () = ...
// Update in Cargo.toml as well.
#![doc(html_root_url = "https://docs.rs/objc2-foundation/0.2.0-alpha.5")]

Expand Down
1 change: 1 addition & 0 deletions objc2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
#![deny(unsafe_op_in_unsafe_fn)]
#![warn(clippy::cargo)]
#![warn(clippy::ptr_as_ptr)]
#![allow(clippy::let_unit_value)] // let _: () = ...
// Update in Cargo.toml as well.
#![doc(html_root_url = "https://docs.rs/objc2/0.3.0-beta.0")]

Expand Down
2 changes: 1 addition & 1 deletion objc2/src/rc/test_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::runtime::{Bool, Class, Object, Sel};
use crate::{msg_send, msg_send_bool};
use crate::{Encoding, Message, RefEncode};

#[derive(Debug, Clone, Default, PartialEq)]
#[derive(Debug, Clone, Default, PartialEq, Eq)]
pub(crate) struct ThreadTestData {
pub(crate) alloc: usize,
pub(crate) dealloc: usize,
Expand Down

0 comments on commit 6ed3325

Please sign in to comment.