diff --git a/defs.bzl b/defs.bzl index 5619989d2..420a4b346 100644 --- a/defs.bzl +++ b/defs.bzl @@ -19,7 +19,7 @@ def setup_deps(): rust_repositories( edition = "2018", - version = "1.48.0", + version = "1.51.0", ) raze_fetch_remote_crates() diff --git a/rslib/src/backend/mod.rs b/rslib/src/backend/mod.rs index a6543c7bf..8782fc593 100644 --- a/rslib/src/backend/mod.rs +++ b/rslib/src/backend/mod.rs @@ -3,7 +3,6 @@ // infallible backend methods still return a result #![allow(clippy::unnecessary_wraps)] -#![allow(clippy::unknown_clippy_lints)] mod adding; mod card; diff --git a/rslib/src/decks/mod.rs b/rslib/src/decks/mod.rs index 6e754c96c..714d8013b 100644 --- a/rslib/src/decks/mod.rs +++ b/rslib/src/decks/mod.rs @@ -863,6 +863,8 @@ mod test { fn n(s: &str) -> String { s.replace(":", "\x1f") } + + #[allow(clippy::unnecessary_wraps)] fn n_opt(s: &str) -> Option { Some(n(s)) } diff --git a/rslib/src/media/files.rs b/rslib/src/media/files.rs index 3f48ca777..c6bc7446f 100644 --- a/rslib/src/media/files.rs +++ b/rslib/src/media/files.rs @@ -122,10 +122,6 @@ pub(crate) fn normalize_nfc_filename(mut fname: Cow) -> Cow { /// On Apple devices, the filename may be stored on disk in NFD encoding, /// but can be accessed as NFC. On these devices, if the filename /// is otherwise valid, the filename is returned as NFC. -/// -/// First two lints can be removed after updating to 1.51 -#[allow(clippy::unknown_clippy_lints)] -#[allow(clippy::collapsible_if)] #[allow(clippy::collapsible_else_if)] pub(super) fn filename_if_normalized(fname: &str) -> Option> { if cfg!(target_vendor = "apple") {