Skip to content

Commit

Permalink
Manual formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 26, 2024
1 parent ab30881 commit 2484edc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/unix/freebsd/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions src/unix/linux/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/windows/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2484edc

Please sign in to comment.