Revert "Remove unused (?) allow clippy statements"

This reverts commit 7ee778a0eb.
This commit is contained in:
Josh Junon 2024-04-09 14:50:31 +02:00 committed by GitHub
parent 91eb4d9b90
commit 8e4ed63a07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 27 additions and 0 deletions

View File

@ -109,6 +109,7 @@ impl Signature {
}
}
#[allow(clippy::cast_precision_loss)]
{
(2 * matching_bigrams) as f64 / (original_length as usize + other.len() - 2) as f64
}

View File

@ -4,6 +4,14 @@
all(windows, not(test), not(debug_assertions)),
windows_subsystem = "windows"
)]
// FIXME(qix-): Stuff we want to fix but don't have a lot of time for.
// FIXME(qix-): PRs welcome!
#![allow(
clippy::used_underscore_binding,
clippy::module_name_repetitions,
clippy::struct_field_names,
clippy::too_many_lines
)]
pub mod askpass;
pub mod assets;

View File

@ -9,6 +9,7 @@ pub struct Controller {
local_data_dir: path::PathBuf,
logs_dir: path::PathBuf,
zipper: Zipper,
#[allow(clippy::struct_field_names)]
projects_controller: projects::Controller,
}

View File

@ -4,6 +4,14 @@
all(windows, not(test), not(debug_assertions)),
windows_subsystem = "windows"
)]
// FIXME(qix-): Stuff we want to fix but don't have a lot of time for.
// FIXME(qix-): PRs welcome!
#![allow(
clippy::used_underscore_binding,
clippy::module_name_repetitions,
clippy::struct_field_names,
clippy::too_many_lines
)]
pub mod analytics;
pub mod app;

View File

@ -4,6 +4,14 @@
all(windows, not(test), not(debug_assertions)),
windows_subsystem = "windows"
)]
// FIXME(qix-): Stuff we want to fix but don't have a lot of time for.
// FIXME(qix-): PRs welcome!
#![allow(
clippy::used_underscore_binding,
clippy::module_name_repetitions,
clippy::struct_field_names,
clippy::too_many_lines
)]
use std::path::PathBuf;

View File

@ -1,4 +1,5 @@
pub mod commands {
#![allow(clippy::used_underscore_binding)]
use anyhow::Context;
use std::path;