mirror of
https://github.com/alexpasmantier/television.git
synced 2025-07-22 18:10:01 +00:00
chore(previewers): unused attributes
This commit is contained in:
parent
5b57d6b290
commit
b04e182453
@ -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"
|
||||
|
@ -17,6 +17,3 @@ categories = [
|
||||
[dependencies]
|
||||
nucleo = "0.5.0"
|
||||
parking_lot = "0.12.3"
|
||||
|
||||
[profile.release]
|
||||
lto = "thin"
|
||||
|
@ -26,6 +26,3 @@ devicons = "0.6.11"
|
||||
color-eyre = "0.6.3"
|
||||
infer = "0.16.0"
|
||||
|
||||
[profile.release]
|
||||
lto = "thin"
|
||||
|
||||
|
@ -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<BasicPreviewerConfig>) -> Self {
|
||||
BasicPreviewer {
|
||||
config: config.unwrap_or_default(),
|
||||
_config: config.unwrap_or_default(),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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)]
|
||||
@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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)]
|
||||
@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user