Skip to content

Commit 44a7ddc

Browse files
committed
Fix remaining Clippy warnings: remove unused Write import, use inline format args
1 parent 30f9b69 commit 44a7ddc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::fmt::{Display, Formatter, Write};
1+
use std::fmt::{Display, Formatter};
22
use std::io::{self, BufRead};
33
use std::net::AddrParseError;
44
use std::net::Ipv4Addr;
@@ -143,7 +143,7 @@ fn main() {
143143
stack.push(cidr1);
144144
if !is_adjascent(cidr1, cidr2) {
145145
for x in stack {
146-
println!("{}", x);
146+
println!("{x}");
147147
}
148148
stack = Vec::new();
149149
}
@@ -154,6 +154,6 @@ fn main() {
154154
}
155155
}
156156
for x in stack {
157-
println!("{}", x);
157+
println!("{x}");
158158
}
159159
}

0 commit comments

Comments
 (0)