From 710dc3494e22b5314b5e1d3b96cbb8ea72567685 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sat, 11 Jul 2026 18:02:15 +0200 Subject: [PATCH] switch-to-configuration-ng: fix clippy errors Failed to build since Rust 1.97, currently on staging. --- pkgs/by-name/sw/switch-to-configuration-ng/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/sw/switch-to-configuration-ng/src/main.rs b/pkgs/by-name/sw/switch-to-configuration-ng/src/main.rs index db6009945e9c..84a46d64565f 100644 --- a/pkgs/by-name/sw/switch-to-configuration-ng/src/main.rs +++ b/pkgs/by-name/sw/switch-to-configuration-ng/src/main.rs @@ -2001,9 +2001,9 @@ won't take effect until you reboot the system. // Swap entry disappeared, so turn it off. Can't use "systemctl stop" here because // systemd has lots of alias units that prevent a stop from actually calling "swapoff". if *action == Action::DryActivate { - eprintln!("would stop swap device: {}", &device); + eprintln!("would stop swap device: {}", device); } else { - eprintln!("stopping swap device: {}", &device); + eprintln!("stopping swap device: {}", device); let c_device = std::ffi::CString::new(device.clone()) .context("failed to convert device to cstring")?; if unsafe { nix::libc::swapoff(c_device.as_ptr()) } != 0 {