Compare commits
1 Commits
5142e2dd2d
...
fed4a8076c
Author | SHA1 | Date | |
---|---|---|---|
fed4a8076c |
@ -17,12 +17,7 @@ pub struct DHCPStaticEntry {
|
||||
|
||||
impl std::fmt::Display for DHCPStaticEntry {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let mac = self
|
||||
.mac
|
||||
.iter()
|
||||
.map(|m| m.to_string())
|
||||
.collect::<Vec<String>>()
|
||||
.join(",");
|
||||
let mac = self.mac.iter().map(|m| m.to_string()).collect::<Vec<String>>().join(",");
|
||||
f.write_fmt(format_args!(
|
||||
"DHCPStaticEntry : name {}, mac {}, ip {}",
|
||||
self.name, mac, self.ip
|
||||
|
Loading…
Reference in New Issue
Block a user