Fix review comments and other improvements
This commit is contained in:
parent
d63a067bfd
commit
db68a19b61
6 changed files with 34 additions and 24 deletions
|
@ -308,10 +308,8 @@ impl<'a> ArchiveBuilder for ArArchiveBuilder<'a> {
|
|||
.map_err(|err| io::Error::new(io::ErrorKind::InvalidData, err))?;
|
||||
if !skip(&file_name) {
|
||||
if entry.is_thin() {
|
||||
self.entries.push((
|
||||
file_name.clone().into_bytes(),
|
||||
ArchiveEntry::File(PathBuf::from(file_name)),
|
||||
));
|
||||
let member_path = archive_path.parent().unwrap().join(Path::new(&file_name));
|
||||
self.entries.push((file_name.into_bytes(), ArchiveEntry::File(member_path)));
|
||||
} else {
|
||||
self.entries.push((
|
||||
file_name.into_bytes(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue