diff --git a/Cargo.toml b/Cargo.toml index c11293554..b496319b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -192,8 +192,9 @@ missing_panics_doc = "allow" module_name_repetitions = "allow" must_use_candidate = "allow" similar_names = "allow" -too_many_lines = "allow" too_many_arguments = "allow" +too_many_lines = "allow" +used_underscore_binding = "allow" # Disallowed restriction lints print_stdout = "warn" print_stderr = "warn" diff --git a/crates/pep440-rs/src/version.rs b/crates/pep440-rs/src/version.rs index ffb138fe7..0172902b7 100644 --- a/crates/pep440-rs/src/version.rs +++ b/crates/pep440-rs/src/version.rs @@ -1491,6 +1491,7 @@ struct Parser<'a> { impl<'a> Parser<'a> { /// The "separators" that are allowed in several different parts of a /// version. + #[allow(clippy::byte_char_slices)] const SEPARATOR: ByteSet = ByteSet::new(&[b'.', b'_', b'-']); /// Create a new `Parser` for parsing the version in the given byte string. diff --git a/crates/uv/tests/edit.rs b/crates/uv/tests/edit.rs index 8121e93b2..44fe9c524 100644 --- a/crates/uv/tests/edit.rs +++ b/crates/uv/tests/edit.rs @@ -438,7 +438,7 @@ fn add_git_private_raw() -> Result<()> { build-backend = "setuptools.build_meta" "#})?; - uv_snapshot!(context.filters(), context.add().arg(&format!("uv-private-pypackage @ git+https://{token}@github.com/astral-test/uv-private-pypackage")).arg("--raw-sources"), @r###" + uv_snapshot!(context.filters(), context.add().arg(format!("uv-private-pypackage @ git+https://{token}@github.com/astral-test/uv-private-pypackage")).arg("--raw-sources"), @r###" success: true exit_code: 0 ----- stdout ----- diff --git a/crates/uv/tests/lock_scenarios.rs b/crates/uv/tests/lock_scenarios.rs index 2d6fc4f5d..498bf91f1 100644 --- a/crates/uv/tests/lock_scenarios.rs +++ b/crates/uv/tests/lock_scenarios.rs @@ -4222,10 +4222,10 @@ fn fork_requires_python_full() -> Result<()> { /// with a `python_version == '3.10'` marker. /// /// This is a regression test for the universal resolver where it would -/// convert a `Requires-Python: >=3.10.1` specifier into a `python_version -/// >= '3.10.1'` marker expression, which would be considered disjoint -/// with `python_version == '3.10'`. Thus, the dependency `a` below was -/// erroneously excluded. It should be included. +/// convert a `Requires-Python: >=3.10.1` specifier into a +/// `python_version >= '3.10.1'` marker expression, which would be +/// considered disjoint with `python_version == '3.10'`. Thus, the +/// dependency `a` below was erroneously excluded. It should be included. /// /// ```text /// fork-requires-python-patch-overlap diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 8cca5be05..4cef0b738 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "1.80" +channel = "1.81"