Remove useless #[allow(clippy::too_many_arguments)] (#4529)

I went through all `#[allow(clippy::too_many_arguments)]` and removed
the useless ones.
This commit is contained in:
konsti 2024-06-25 21:09:59 +02:00 committed by GitHub
parent a81742c06b
commit af1f1369e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 0 additions and 7 deletions

View file

@ -513,7 +513,6 @@ fn install_script(
}
/// Move the files from the .data directory to the right location in the venv
#[allow(clippy::too_many_arguments)]
#[instrument(skip_all)]
pub(crate) fn install_data(
layout: &Layout,

View file

@ -61,7 +61,6 @@ pub struct LookaheadResolver<'a, Context: BuildContext> {
impl<'a, Context: BuildContext> LookaheadResolver<'a, Context> {
/// Instantiate a new [`LookaheadResolver`] for a given set of requirements.
#[allow(clippy::too_many_arguments)]
pub fn new(
requirements: &'a [Requirement],
constraints: &'a Constraints,

View file

@ -59,7 +59,6 @@ impl FlatIndex {
Self { index, offline }
}
#[allow(clippy::too_many_arguments)]
fn add_file(
distributions: &mut FlatDistributions,
file: File,

View file

@ -420,7 +420,6 @@ impl VersionMapLazy {
simple.dist.get_or_init(get_or_init).as_ref()
}
#[allow(clippy::too_many_arguments)]
fn source_dist_compatibility(
&self,
version: &Version,

View file

@ -11,7 +11,6 @@ use crate::commands::ExitStatus;
use crate::printer::Printer;
/// Find a toolchain.
#[allow(clippy::too_many_arguments)]
pub(crate) async fn find(
request: Option<String>,
toolchain_preference: ToolchainPreference,

View file

@ -15,7 +15,6 @@ use crate::commands::ExitStatus;
use crate::printer::Printer;
/// Download and install a Python toolchain.
#[allow(clippy::too_many_arguments)]
pub(crate) async fn install(
targets: Vec<String>,
force: bool,

View file

@ -25,7 +25,6 @@ enum Kind {
}
/// List available toolchains.
#[allow(clippy::too_many_arguments)]
pub(crate) async fn list(
kinds: ToolchainListKinds,
all_versions: bool,