chore: cleanup warnings, fmt
This commit is contained in:
parent
350bb9ccf7
commit
9151834ba3
@ -188,7 +188,7 @@ impl TarHelper {
|
||||
ret[2] = self.pad(data.len() as u64 + 1);
|
||||
}
|
||||
|
||||
if let Err(_) = self.header.set_link_name(target) {
|
||||
if self.header.set_link_name(target).is_err() {
|
||||
let data = path2bytes(target);
|
||||
|
||||
if data.len() < self.header.as_old().linkname.len() {
|
||||
@ -305,7 +305,7 @@ fn prepare_long_header<'a>(
|
||||
&format!(
|
||||
"only Unicode paths are supported on Windows: {}",
|
||||
String::from_utf8_lossy(v)
|
||||
)
|
||||
),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -1,9 +1,7 @@
|
||||
use crate::pb::PBNode;
|
||||
use crate::InvalidCidInLink;
|
||||
use cid::Cid;
|
||||
use std::borrow::Cow;
|
||||
///! dag-pb support operations. Placing this module inside unixfs module is a bit unfortunate but
|
||||
///! follows from the inseparability of dag-pb and UnixFS.
|
||||
use crate::pb::PBNode;
|
||||
use std::borrow::Cow;
|
||||
use std::convert::TryFrom;
|
||||
|
||||
/// Extracts the PBNode::Data field from the block as it appears on the block.
|
||||
|
Loading…
x
Reference in New Issue
Block a user