mirror of
https://github.com/denisidoro/navi.git
synced 2026-07-20 16:50:38 +00:00
adding allow unused macro and light formating
This commit is contained in:
parent
369047b738
commit
48792e9f1d
5 changed files with 5 additions and 6 deletions
|
|
@ -1,3 +1,4 @@
|
|||
[toolchain]
|
||||
channel = "1.81.0"
|
||||
profile = "default"
|
||||
components = [ "rustfmt", "clippy" ]
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
use crate::prelude::*;
|
||||
|
||||
#[allow(unused)]
|
||||
#[derive(Deserialize, Serialize, Debug, Clone)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct TracingConfig {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue