Skip to content

Commit

Permalink
Fixed clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ancwrd1 committed Dec 19, 2024
1 parent f60838e commit 49a5296
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snxcore/src/platform/linux/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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");

Expand Down

0 comments on commit 49a5296

Please sign in to comment.