From 20d58e6edb0751926d8d1911782a7cf97d120c82 Mon Sep 17 00:00:00 2001 From: heinrich5991 Date: Mon, 1 Jul 2024 21:57:07 +0200 Subject: [PATCH] mastersrv: Fix warning about unused `mut` --- src/mastersrv/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mastersrv/src/main.rs b/src/mastersrv/src/main.rs index ca2d758cd..8bd9a9348 100644 --- a/src/mastersrv/src/main.rs +++ b/src/mastersrv/src/main.rs @@ -408,7 +408,7 @@ impl Servers { }); } hash_map::Entry::Occupied(mut o) => { - let mut server = &mut o.get_mut(); + let server = &mut o.get_mut(); if insert_addr { server.addresses.push(addr); server.addresses.sort_unstable();