Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ibigbug committed Oct 1, 2024
1 parent 3b999b9 commit d8533e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clash_lib/src/app/router/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl Router {
.and_then(|c| c.iso_code)
.map(|s| s.to_string());
}
if !sess.asn.is_some() {
if sess.asn.is_none() {
match asn_mmdb.lookup_asn(ip) {
Ok(asn) => {
trace!("asn for {} is {:?}", ip, asn);
Expand All @@ -130,7 +130,7 @@ impl Router {
}
}

if r.apply(&sess) {
if r.apply(sess) {
info!(
"matched {} to target {}[{}]",
&sess,
Expand Down

0 comments on commit d8533e5

Please sign in to comment.