Skip to content

Commit 2ddec19

Browse files
committed
clippy
1 parent 02a41db commit 2ddec19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clash-lib/src/app/router/rules/process.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use super::RuleMatcher;
2-
use crate::session::Network;
32

43
pub struct Process {
54
pub name: String,
@@ -18,6 +17,7 @@ impl RuleMatcher for Process {
1817
fn apply(&self, sess: &crate::session::Session) -> bool {
1918
#[cfg(any(target_os = "linux", target_os = "macos"))]
2019
{
20+
use crate::session::Network;
2121
use tracing::debug;
2222

2323
sock2proc::find_process_name(
@@ -41,7 +41,7 @@ impl RuleMatcher for Process {
4141
{
4242
use tracing::info;
4343

44-
info!("PROCESS-NAME not supported on Windows yet");
44+
info!("PROCESS-NAME not supported on Windows yet", sess = &sess);
4545
false
4646
}
4747
}

0 commit comments

Comments
 (0)