Skip to content

Commit 7b69021

Browse files
committed
Added default for HeosDevice
1 parent 218e04b commit 7b69021

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

heos-lib/src/heos_device.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use crate::heos_command::{HeosCommand, HeosCommandHandler};
1818
use crate::heos_media::HeosMedia;
1919
use crate::heos_reply::HeosReply;
2020

21-
#[derive(Debug)]
21+
#[derive(Debug, Default)]
2222
pub struct HeosDevice {
2323
pub name: String,
2424
pub model: String,
@@ -195,4 +195,4 @@ impl Display for HeosDevice {
195195
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
196196
write!(f, "{} ({})", self.name, self.base_url)
197197
}
198-
}
198+
}

0 commit comments

Comments
 (0)