From 49a52967a01e6574508a3895cac33812f44ba9b4 Mon Sep 17 00:00:00 2001 From: Dmitry Pankratov Date: Thu, 19 Dec 2024 14:21:13 +0100 Subject: [PATCH] Fixed clippy warnings --- snxcore/src/platform/linux/resolver.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snxcore/src/platform/linux/resolver.rs b/snxcore/src/platform/linux/resolver.rs index b3b8629..f6505e3 100644 --- a/snxcore/src/platform/linux/resolver.rs +++ b/snxcore/src/platform/linux/resolver.rs @@ -247,7 +247,7 @@ mod tests { let symlink = etc.join("resolv.conf"); let relative_target = Path::new("../run/systemd/resolve/stub-resolv.conf"); - std::os::unix::fs::symlink(&relative_target, &symlink).unwrap(); + std::os::unix::fs::symlink(relative_target, &symlink).unwrap(); let resolver = detect_resolver(symlink).expect("Failed to detect resolver"); assert_eq!(resolver, ResolverType::SystemdResolved); @@ -265,7 +265,7 @@ mod tests { let symlink = etc.join("resolv.conf"); let relative_target = Path::new("../nonexistent.conf"); - std::os::unix::fs::symlink(&relative_target, &symlink).unwrap(); + std::os::unix::fs::symlink(relative_target, &symlink).unwrap(); let error = detect_resolver(symlink.clone()).expect_err("Invalid symlink should trigger error");