[pve-devel] [PATCH installer 2/2] tui: fix clippy warning

Christoph Heiss c.heiss at proxmox.com
Fri Nov 3 10:49:37 CET 2023


Signed-off-by: Christoph Heiss <c.heiss at proxmox.com>
---
 proxmox-tui-installer/src/main.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxmox-tui-installer/src/main.rs b/proxmox-tui-installer/src/main.rs
index 3216868..2e5a194 100644
--- a/proxmox-tui-installer/src/main.rs
+++ b/proxmox-tui-installer/src/main.rs
@@ -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),
     );
 
-- 
2.42.0






More information about the pve-devel mailing list