Merge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/tar-ng into odin
This commit is contained in:
commit
49f1954a57
@ -170,9 +170,8 @@ impl Node {
|
|||||||
} else if kind == Kind::Pipe {
|
} else if kind == Kind::Pipe {
|
||||||
break 'blk FileType::Fifo;
|
break 'blk FileType::Fifo;
|
||||||
} else if kind == Kind::Normal {
|
} else if kind == Kind::Normal {
|
||||||
let mut len = meta.len();
|
let mut data = vec![];
|
||||||
let mut data = Vec::with_capacity(len.try_into()?);
|
let len = reader.read_to_end(&mut data)?.try_into()?;
|
||||||
len = reader.read_to_end(&mut data)?.try_into()?;
|
|
||||||
let checksum = match algorithm {
|
let checksum = match algorithm {
|
||||||
Algorithm::Md5 => {
|
Algorithm::Md5 => {
|
||||||
let mut hasher = Md5::new();
|
let mut hasher = Md5::new();
|
||||||
|
Loading…
Reference in New Issue
Block a user