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