From 7ee778a0ebae6123f638008cc77391a8026ab8f2 Mon Sep 17 00:00:00 2001 From: Toby Webb Date: Sat, 6 Apr 2024 20:24:11 +0200 Subject: [PATCH] Remove unused (?) allow clippy statements --- crates/gitbutler-changeset/src/signature.rs | 1 - crates/gitbutler-core/src/lib.rs | 8 -------- crates/gitbutler-core/src/zip/controller.rs | 1 - crates/gitbutler-tauri/src/lib.rs | 8 -------- crates/gitbutler-tauri/src/main.rs | 8 -------- crates/gitbutler-tauri/src/zip.rs | 1 - 6 files changed, 27 deletions(-) diff --git a/crates/gitbutler-changeset/src/signature.rs b/crates/gitbutler-changeset/src/signature.rs index 77744d92b..b3ef41d74 100644 --- a/crates/gitbutler-changeset/src/signature.rs +++ b/crates/gitbutler-changeset/src/signature.rs @@ -109,7 +109,6 @@ 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 675c84f92..216917ba2 100644 --- a/crates/gitbutler-core/src/lib.rs +++ b/crates/gitbutler-core/src/lib.rs @@ -4,14 +4,6 @@ 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 790c27565..83ab3ecc8 100644 --- a/crates/gitbutler-core/src/zip/controller.rs +++ b/crates/gitbutler-core/src/zip/controller.rs @@ -9,7 +9,6 @@ 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 77c35a4ca..719cb38f7 100644 --- a/crates/gitbutler-tauri/src/lib.rs +++ b/crates/gitbutler-tauri/src/lib.rs @@ -4,14 +4,6 @@ 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 ae7bd83d7..683f19443 100644 --- a/crates/gitbutler-tauri/src/main.rs +++ b/crates/gitbutler-tauri/src/main.rs @@ -4,14 +4,6 @@ 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 9252df497..c45f8eb4b 100644 --- a/crates/gitbutler-tauri/src/zip.rs +++ b/crates/gitbutler-tauri/src/zip.rs @@ -1,5 +1,4 @@ pub mod commands { - #![allow(clippy::used_underscore_binding)] use anyhow::Context; use std::path;