src/pxar/format_definition.rs - PxarAttributes: derive Default
And remove unnecessary impl new().
This commit is contained in:
1 parent
a92e6c9011
commit
27e6e180b6
2 files changed
+2
-18
No files matched your search
@@ -179,7 +179,7 @@ impl <'a, R: Read, F: Fn(&Path) -> Result<(), Error>> SequentialDecoder<'a, R, F
|
||||
}
|
||||
|
||||
fn read_attributes(&mut self) -> Result<(CaFormatHeader, PxarAttributes), Error> {
|
||||
let mut attr = PxarAttributes::new();
|
||||
let mut attr = PxarAttributes::default();
|
||||
let mut head: CaFormatHeader = self.read_item()?;
|
||||
let mut size = (head.size - HEADER_SIZE) as usize;
|
||||
loop {
|
||||
|
||||
Reference in new issue
Block a user