mirror of
https://github.com/alexpasmantier/television.git
synced 2025-07-23 02:20:03 +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"
|
color-eyre = "0.6.3"
|
||||||
serde = "1.0.214"
|
serde = "1.0.214"
|
||||||
strum = { version = "0.26.3", features = ["derive"] }
|
strum = { version = "0.26.3", features = ["derive"] }
|
||||||
|
|
||||||
[profile.release]
|
|
||||||
lto = "thin"
|
|
||||||
|
@ -17,6 +17,3 @@ categories = [
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
nucleo = "0.5.0"
|
nucleo = "0.5.0"
|
||||||
parking_lot = "0.12.3"
|
parking_lot = "0.12.3"
|
||||||
|
|
||||||
[profile.release]
|
|
||||||
lto = "thin"
|
|
||||||
|
@ -26,6 +26,3 @@ devicons = "0.6.11"
|
|||||||
color-eyre = "0.6.3"
|
color-eyre = "0.6.3"
|
||||||
infer = "0.16.0"
|
infer = "0.16.0"
|
||||||
|
|
||||||
[profile.release]
|
|
||||||
lto = "thin"
|
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ use television_channels::entry::Entry;
|
|||||||
|
|
||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
pub struct BasicPreviewer {
|
pub struct BasicPreviewer {
|
||||||
config: BasicPreviewerConfig,
|
_config: BasicPreviewerConfig,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
@ -14,7 +14,7 @@ pub struct BasicPreviewerConfig {}
|
|||||||
impl BasicPreviewer {
|
impl BasicPreviewer {
|
||||||
pub fn new(config: Option<BasicPreviewerConfig>) -> Self {
|
pub fn new(config: Option<BasicPreviewerConfig>) -> Self {
|
||||||
BasicPreviewer {
|
BasicPreviewer {
|
||||||
config: config.unwrap_or_default(),
|
_config: config.unwrap_or_default(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ use television_utils::files::walk_builder;
|
|||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
pub struct DirectoryPreviewer {
|
pub struct DirectoryPreviewer {
|
||||||
cache: Arc<Mutex<PreviewCache>>,
|
cache: Arc<Mutex<PreviewCache>>,
|
||||||
config: DirectoryPreviewerConfig,
|
_config: DirectoryPreviewerConfig,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
@ -24,7 +24,7 @@ impl DirectoryPreviewer {
|
|||||||
pub fn new(config: Option<DirectoryPreviewerConfig>) -> Self {
|
pub fn new(config: Option<DirectoryPreviewerConfig>) -> Self {
|
||||||
DirectoryPreviewer {
|
DirectoryPreviewer {
|
||||||
cache: Arc::new(Mutex::new(PreviewCache::default())),
|
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)]
|
#[derive(Debug, Default)]
|
||||||
pub struct EnvVarPreviewer {
|
pub struct EnvVarPreviewer {
|
||||||
cache: HashMap<entry::Entry, Arc<Preview>>,
|
cache: HashMap<entry::Entry, Arc<Preview>>,
|
||||||
config: EnvVarPreviewerConfig,
|
_config: EnvVarPreviewerConfig,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
@ -17,7 +17,7 @@ impl EnvVarPreviewer {
|
|||||||
pub fn new(config: Option<EnvVarPreviewerConfig>) -> Self {
|
pub fn new(config: Option<EnvVarPreviewerConfig>) -> Self {
|
||||||
EnvVarPreviewer {
|
EnvVarPreviewer {
|
||||||
cache: HashMap::new(),
|
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"
|
bat = "0.24.0"
|
||||||
directories = "5.0.1"
|
directories = "5.0.1"
|
||||||
syntect = "5.2.0"
|
syntect = "5.2.0"
|
||||||
|
|
||||||
[profile.release]
|
|
||||||
lto = "thin"
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user