Skip to content

Commit 9d709e0

Browse files
committed
LoopbackIpManager: cargo fmt
1 parent 85c5860 commit 9d709e0

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

mg-common/src/test.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,7 @@ fn write_refcount(file: &mut File, count: u32) -> std::io::Result<()> {
271271
}
272272

273273
impl LoopbackIpManager {
274-
fn install(
275-
&mut self,
276-
addresses: &[IpAddr],
277-
) -> Result<(), std::io::Error> {
274+
fn install(&mut self, addresses: &[IpAddr]) -> Result<(), std::io::Error> {
278275
let ifname = self.ifname.clone();
279276
let log = self.log.clone();
280277

@@ -559,10 +556,7 @@ impl LoopbackIpManager {
559556
info!(log, "removed {addr} from system");
560557
}
561558
Err(e) => {
562-
error!(
563-
log,
564-
"failed to execute remove command for {addr}: {e}"
565-
);
559+
error!(log, "failed to execute remove command for {addr}: {e}");
566560
}
567561
}
568562
}

0 commit comments

Comments
 (0)