adding allow unused macro and light formating

This commit is contained in:
Emmanuel 2026-05-14 13:29:13 +01:00
parent 369047b738
commit 48792e9f1d
5 changed files with 5 additions and 6 deletions

View file

@ -1,3 +1,4 @@
[toolchain]
channel = "1.81.0"
profile = "default"
components = [ "rustfmt", "clippy" ]

View file

@ -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(),

View file

@ -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 {

View file

@ -149,10 +149,7 @@ impl Config {
}
pub fn tag_rules(&self) -> Option<String> {
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 {

View file

@ -1,5 +1,6 @@
use crate::prelude::*;
#[allow(unused)]
#[derive(Deserialize, Serialize, Debug, Clone)]
#[serde(deny_unknown_fields)]
pub struct TracingConfig {