diff --git a/rust-toolchain.toml b/rust-toolchain.toml index e39240f..013efd4 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,4 @@ [toolchain] channel = "1.81.0" +profile = "default" components = [ "rustfmt", "clippy" ] diff --git a/src/commands/mod.rs b/src/commands/mod.rs index 4537177..738b789 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -7,11 +7,10 @@ pub mod shell; pub mod temp; use crate::commands; +use crate::config::Command::*; use crate::prelude::*; pub fn handle() -> Result<()> { - use crate::config::Command::*; - debug!("CONFIG = {:#?}", &*CONFIG); match CONFIG.cmd() { None => commands::core::main(), diff --git a/src/common/fs.rs b/src/common/fs.rs index 4800767..9080181 100644 --- a/src/common/fs.rs +++ b/src/common/fs.rs @@ -26,6 +26,7 @@ impl ToStringExt for OsStr { #[error("Invalid path `{0}`")] pub struct InvalidPath(pub PathBuf); +#[allow(unused)] #[derive(Error, Debug)] #[error("Unable to read directory `{dir}`")] pub struct UnreadableDir { diff --git a/src/config/mod.rs b/src/config/mod.rs index 335086e..69c2fa3 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -149,10 +149,7 @@ impl Config { } pub fn tag_rules(&self) -> Option { - self.clap - .tag_rules - .clone() - .or(self.yaml.search.tags.clone()) + self.clap.tag_rules.clone().or(self.yaml.search.tags.clone()) } pub fn tag_color(&self) -> Color { diff --git a/src/libs/dns_common/tracing.rs b/src/libs/dns_common/tracing.rs index 8e4ac3b..b349a53 100644 --- a/src/libs/dns_common/tracing.rs +++ b/src/libs/dns_common/tracing.rs @@ -1,5 +1,6 @@ use crate::prelude::*; +#[allow(unused)] #[derive(Deserialize, Serialize, Debug, Clone)] #[serde(deny_unknown_fields)] pub struct TracingConfig {