]> git.proxmox.com Git - pve-installer.git/commitdiff
tui: fix clippy warning
authorChristoph Heiss <c.heiss@proxmox.com>
Fri, 3 Nov 2023 09:49:37 +0000 (10:49 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 3 Nov 2023 11:52:56 +0000 (12:52 +0100)
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
proxmox-tui-installer/src/main.rs

index 3216868f2fc5c29464f89489950bac7ad340b0c5..2e5a19428521281daa87421f778c1959e3c049e4 100644 (file)
@@ -505,7 +505,7 @@ fn network_dialog(siv: &mut Cursive) -> InstallerView {
     ifaces_selection.set_selection(
         ifnames
             .clone()
-            .position(|iface| &iface.1 == &options.ifname)
+            .position(|iface| iface.1 == options.ifname)
             .unwrap_or(ifaces.len() - 1),
     );