From b04e1824535467f401d7117b0e6048b2dfabb7fe Mon Sep 17 00:00:00 2001 From: Alexandre Pasmantier Date: Sun, 10 Nov 2024 01:19:41 +0100 Subject: [PATCH] chore(previewers): unused attributes --- crates/television_channels/Cargo.toml | 3 --- crates/television_fuzzy/Cargo.toml | 3 --- crates/television_previewers/Cargo.toml | 3 --- crates/television_previewers/src/previewers/basic.rs | 4 ++-- crates/television_previewers/src/previewers/directory.rs | 4 ++-- crates/television_previewers/src/previewers/env.rs | 4 ++-- crates/television_utils/Cargo.toml | 3 --- 7 files changed, 6 insertions(+), 18 deletions(-) diff --git a/crates/television_channels/Cargo.toml b/crates/television_channels/Cargo.toml index b45bc40..6a5d776 100644 --- a/crates/television_channels/Cargo.toml +++ b/crates/television_channels/Cargo.toml @@ -28,6 +28,3 @@ directories = "5.0.1" color-eyre = "0.6.3" serde = "1.0.214" strum = { version = "0.26.3", features = ["derive"] } - -[profile.release] -lto = "thin" diff --git a/crates/television_fuzzy/Cargo.toml b/crates/television_fuzzy/Cargo.toml index 9d691b5..2e9dbbc 100644 --- a/crates/television_fuzzy/Cargo.toml +++ b/crates/television_fuzzy/Cargo.toml @@ -17,6 +17,3 @@ categories = [ [dependencies] nucleo = "0.5.0" parking_lot = "0.12.3" - -[profile.release] -lto = "thin" diff --git a/crates/television_previewers/Cargo.toml b/crates/television_previewers/Cargo.toml index 8c0118f..36098da 100644 --- a/crates/television_previewers/Cargo.toml +++ b/crates/television_previewers/Cargo.toml @@ -26,6 +26,3 @@ devicons = "0.6.11" color-eyre = "0.6.3" infer = "0.16.0" -[profile.release] -lto = "thin" - diff --git a/crates/television_previewers/src/previewers/basic.rs b/crates/television_previewers/src/previewers/basic.rs index 4e9d13a..0c61403 100644 --- a/crates/television_previewers/src/previewers/basic.rs +++ b/crates/television_previewers/src/previewers/basic.rs @@ -5,7 +5,7 @@ use television_channels::entry::Entry; #[derive(Debug, Default)] pub struct BasicPreviewer { - config: BasicPreviewerConfig, + _config: BasicPreviewerConfig, } #[derive(Debug, Default)] @@ -14,7 +14,7 @@ pub struct BasicPreviewerConfig {} impl BasicPreviewer { pub fn new(config: Option) -> Self { BasicPreviewer { - config: config.unwrap_or_default(), + _config: config.unwrap_or_default(), } } diff --git a/crates/television_previewers/src/previewers/directory.rs b/crates/television_previewers/src/previewers/directory.rs index 1e791d6..fd071e3 100644 --- a/crates/television_previewers/src/previewers/directory.rs +++ b/crates/television_previewers/src/previewers/directory.rs @@ -14,7 +14,7 @@ use television_utils::files::walk_builder; #[derive(Debug, Default)] pub struct DirectoryPreviewer { cache: Arc>, - config: DirectoryPreviewerConfig, + _config: DirectoryPreviewerConfig, } #[derive(Debug, Default)] @@ -24,7 +24,7 @@ impl DirectoryPreviewer { pub fn new(config: Option) -> Self { DirectoryPreviewer { cache: Arc::new(Mutex::new(PreviewCache::default())), - config: config.unwrap_or_default(), + _config: config.unwrap_or_default(), } } diff --git a/crates/television_previewers/src/previewers/env.rs b/crates/television_previewers/src/previewers/env.rs index 2bf7e14..773276f 100644 --- a/crates/television_previewers/src/previewers/env.rs +++ b/crates/television_previewers/src/previewers/env.rs @@ -7,7 +7,7 @@ use television_channels::entry; #[derive(Debug, Default)] pub struct EnvVarPreviewer { cache: HashMap>, - config: EnvVarPreviewerConfig, + _config: EnvVarPreviewerConfig, } #[derive(Debug, Default)] @@ -17,7 +17,7 @@ impl EnvVarPreviewer { pub fn new(config: Option) -> Self { EnvVarPreviewer { cache: HashMap::new(), - config: config.unwrap_or_default(), + _config: config.unwrap_or_default(), } } diff --git a/crates/television_utils/Cargo.toml b/crates/television_utils/Cargo.toml index 18392ab..9ed0eb6 100644 --- a/crates/television_utils/Cargo.toml +++ b/crates/television_utils/Cargo.toml @@ -23,6 +23,3 @@ color-eyre = "0.6.3" bat = "0.24.0" directories = "5.0.1" syntect = "5.2.0" - -[profile.release] -lto = "thin"