Skip to content

Commit

Permalink
chore(previewers): unused attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpasmantier committed Nov 10, 2024
1 parent 5b57d6b commit b04e182
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 18 deletions.
3 changes: 0 additions & 3 deletions crates/television_channels/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
3 changes: 0 additions & 3 deletions crates/television_fuzzy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,3 @@ categories = [
[dependencies]
nucleo = "0.5.0"
parking_lot = "0.12.3"

[profile.release]
lto = "thin"
3 changes: 0 additions & 3 deletions crates/television_previewers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,3 @@ devicons = "0.6.11"
color-eyre = "0.6.3"
infer = "0.16.0"

[profile.release]
lto = "thin"

4 changes: 2 additions & 2 deletions crates/television_previewers/src/previewers/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use television_channels::entry::Entry;

#[derive(Debug, Default)]
pub struct BasicPreviewer {
config: BasicPreviewerConfig,
_config: BasicPreviewerConfig,
}

#[derive(Debug, Default)]
Expand All @@ -14,7 +14,7 @@ pub struct BasicPreviewerConfig {}
impl BasicPreviewer {
pub fn new(config: Option<BasicPreviewerConfig>) -> Self {
BasicPreviewer {
config: config.unwrap_or_default(),
_config: config.unwrap_or_default(),
}
}

Expand Down
4 changes: 2 additions & 2 deletions crates/television_previewers/src/previewers/directory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use television_utils::files::walk_builder;
#[derive(Debug, Default)]
pub struct DirectoryPreviewer {
cache: Arc<Mutex<PreviewCache>>,
config: DirectoryPreviewerConfig,
_config: DirectoryPreviewerConfig,
}

#[derive(Debug, Default)]
Expand All @@ -24,7 +24,7 @@ impl DirectoryPreviewer {
pub fn new(config: Option<DirectoryPreviewerConfig>) -> Self {
DirectoryPreviewer {
cache: Arc::new(Mutex::new(PreviewCache::default())),
config: config.unwrap_or_default(),
_config: config.unwrap_or_default(),
}
}

Expand Down
4 changes: 2 additions & 2 deletions crates/television_previewers/src/previewers/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use television_channels::entry;
#[derive(Debug, Default)]
pub struct EnvVarPreviewer {
cache: HashMap<entry::Entry, Arc<Preview>>,
config: EnvVarPreviewerConfig,
_config: EnvVarPreviewerConfig,
}

#[derive(Debug, Default)]
Expand All @@ -17,7 +17,7 @@ impl EnvVarPreviewer {
pub fn new(config: Option<EnvVarPreviewerConfig>) -> Self {
EnvVarPreviewer {
cache: HashMap::new(),
config: config.unwrap_or_default(),
_config: config.unwrap_or_default(),
}
}

Expand Down
3 changes: 0 additions & 3 deletions crates/television_utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit b04e182

Please sign in to comment.