short-hand default via derive

This commit is contained in:
mos 2024-07-30 14:37:23 +02:00
parent ea09723455
commit 955fd5b0ae
1 changed files with 1 additions and 6 deletions

View File

@ -78,17 +78,12 @@ impl Op {
}
}
#[derive(Default)]
pub struct Writer {
data: HashMap<String, Vec<String>>,
buf: Vec<u8>,
}
impl Default for Writer {
fn default() -> Self {
Self::new()
}
}
impl Writer {
pub fn new() -> Self {
Self {