diff --git a/crates/gitbutler-changeset/src/signature.rs b/crates/gitbutler-changeset/src/signature.rs index b3ef41d74..77744d92b 100644 --- a/crates/gitbutler-changeset/src/signature.rs +++ b/crates/gitbutler-changeset/src/signature.rs @@ -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 } diff --git a/crates/gitbutler-core/src/lib.rs b/crates/gitbutler-core/src/lib.rs index 216917ba2..675c84f92 100644 --- a/crates/gitbutler-core/src/lib.rs +++ b/crates/gitbutler-core/src/lib.rs @@ -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; diff --git a/crates/gitbutler-core/src/zip/controller.rs b/crates/gitbutler-core/src/zip/controller.rs index 83ab3ecc8..790c27565 100644 --- a/crates/gitbutler-core/src/zip/controller.rs +++ b/crates/gitbutler-core/src/zip/controller.rs @@ -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, } diff --git a/crates/gitbutler-tauri/src/lib.rs b/crates/gitbutler-tauri/src/lib.rs index 719cb38f7..77c35a4ca 100644 --- a/crates/gitbutler-tauri/src/lib.rs +++ b/crates/gitbutler-tauri/src/lib.rs @@ -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; diff --git a/crates/gitbutler-tauri/src/main.rs b/crates/gitbutler-tauri/src/main.rs index 0f663b5c8..835dddccc 100644 --- a/crates/gitbutler-tauri/src/main.rs +++ b/crates/gitbutler-tauri/src/main.rs @@ -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; diff --git a/crates/gitbutler-tauri/src/zip.rs b/crates/gitbutler-tauri/src/zip.rs index 3c5f02eb3..81dd0f20f 100644 --- a/crates/gitbutler-tauri/src/zip.rs +++ b/crates/gitbutler-tauri/src/zip.rs @@ -1,4 +1,5 @@ pub mod commands { + #![allow(clippy::used_underscore_binding)] use anyhow::Context; use std::path;