short-hand default via derive
This commit is contained in:
parent
ea09723455
commit
955fd5b0ae
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue