mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-06 07:13:44 +08:00
fix: Cargo clippy
This commit is contained in:
parent
c36425fd3a
commit
bfb7ff88d9
@ -96,7 +96,7 @@ impl PrfOption {
|
|||||||
a.update_interval = b.update_interval.or(a.update_interval);
|
a.update_interval = b.update_interval.or(a.update_interval);
|
||||||
Some(a)
|
Some(a)
|
||||||
}
|
}
|
||||||
t @ _ => t.0.or(t.1),
|
t => t.0.or(t.1),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -152,7 +152,7 @@ impl PrfItem {
|
|||||||
let desc = item.desc.unwrap_or("".into());
|
let desc = item.desc.unwrap_or("".into());
|
||||||
PrfItem::from_script(name, desc)
|
PrfItem::from_script(name, desc)
|
||||||
}
|
}
|
||||||
typ @ _ => bail!("invalid profile item type \"{typ}\""),
|
typ => bail!("invalid profile item type \"{typ}\""),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ pub async fn put_configs(path: &str) -> Result<()> {
|
|||||||
|
|
||||||
match response.status().as_u16() {
|
match response.status().as_u16() {
|
||||||
204 => Ok(()),
|
204 => Ok(()),
|
||||||
status @ _ => {
|
status => {
|
||||||
bail!("failed to put configs with status \"{status}\"")
|
bail!("failed to put configs with status \"{status}\"")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,9 +4,8 @@ mod merge;
|
|||||||
mod script;
|
mod script;
|
||||||
mod tun;
|
mod tun;
|
||||||
|
|
||||||
pub(self) use self::field::*;
|
|
||||||
|
|
||||||
use self::chain::*;
|
use self::chain::*;
|
||||||
|
use self::field::*;
|
||||||
use self::merge::*;
|
use self::merge::*;
|
||||||
use self::script::*;
|
use self::script::*;
|
||||||
use self::tun::*;
|
use self::tun::*;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
///! Some config file template
|
//! Some config file template
|
||||||
|
|
||||||
/// template for new a profile item
|
/// template for new a profile item
|
||||||
pub const ITEM_LOCAL: &str = "# Profile Template for clash verge
|
pub const ITEM_LOCAL: &str = "# Profile Template for clash verge
|
||||||
|
Loading…
x
Reference in New Issue
Block a user