From 2484edccb7d54284a751077e39abe4b210aa6327 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 26 Nov 2024 09:43:36 -0800 Subject: [PATCH] Manual formatting fixes --- src/unix/freebsd/network.rs | 2 +- src/unix/linux/network.rs | 4 ++-- src/windows/network.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/unix/freebsd/network.rs b/src/unix/freebsd/network.rs index fa5ae5af0..b28ea9aa8 100644 --- a/src/unix/freebsd/network.rs +++ b/src/unix/freebsd/network.rs @@ -93,7 +93,7 @@ impl NetworksInner { old_and_new!(interface, ifi_ierrors, old_ifi_ierrors, data); old_and_new!(interface, ifi_oerrors, old_ifi_oerrors, data); if interface.mtu != mtu { - interface.mtu = mtu + interface.mtu = mtu; } interface.updated = true; } diff --git a/src/unix/linux/network.rs b/src/unix/linux/network.rs index 70613df4b..6f3208aac 100644 --- a/src/unix/linux/network.rs +++ b/src/unix/linux/network.rs @@ -80,7 +80,7 @@ fn refresh_networks_list_from_sysfs( // old_and_new!(e, rx_compressed, old_rx_compressed); // old_and_new!(e, tx_compressed, old_tx_compressed); if interface.mtu != mtu { - interface.mtu = mtu + interface.mtu = mtu; } interface.updated = true; } @@ -231,7 +231,7 @@ impl NetworkDataInner { let mtu_path = &Path::new("/sys/class/net/").join(path); let mtu = read(mtu_path, "mtu", data); if self.mtu != mtu { - self.mtu = mtu + self.mtu = mtu; } } diff --git a/src/windows/network.rs b/src/windows/network.rs index c6bc574c1..c89aee071 100644 --- a/src/windows/network.rs +++ b/src/windows/network.rs @@ -117,7 +117,7 @@ impl NetworksInner { old_and_new!(interface, errors_in, old_errors_in, ptr.InErrors); old_and_new!(interface, errors_out, old_errors_out, ptr.OutErrors); if interface.mtu != mtu { - interface.mtu = mtu + interface.mtu = mtu; } interface.updated = true; }