Skip to content

Commit

Permalink
Fix cargo fmt errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gwitrand-ovh committed Oct 21, 2024
1 parent 6d3cd50 commit f148ee5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub use crate::entry::{Entry, Unpacked};
pub use crate::entry_type::EntryType;
pub use crate::header::GnuExtSparseHeader;
pub use crate::header::{GnuHeader, GnuSparseHeader, Header, HeaderMode, OldHeader, UstarHeader};
pub use crate::pax::{PaxExtension, PaxExtensions, PaxBuilder, BuilderExt};
pub use crate::pax::{BuilderExt, PaxBuilder, PaxExtension, PaxExtensions};

mod archive;
mod builder;
Expand Down
2 changes: 1 addition & 1 deletion src/pax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ impl<T: Write> BuilderExt for crate::Builder<T> {
fn append_pax_extensions(&mut self, headers: &PaxBuilder) -> Result<(), io::Error> {
// Ignore the header if it's empty.
if !headers.updated() {
return Ok(())
return Ok(());
}

// Create a header of type XHeader, set the size to the length of the
Expand Down
4 changes: 3 additions & 1 deletion tests/all.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ use std::iter::repeat;
use std::path::{Path, PathBuf};

use filetime::FileTime;
use tar::{Archive, Builder, BuilderExt, Entries, Entry, EntryType, Header, HeaderMode, PaxBuilder};
use tar::{
Archive, Builder, BuilderExt, Entries, Entry, EntryType, Header, HeaderMode, PaxBuilder,
};
use tempfile::{Builder as TempBuilder, TempDir};

macro_rules! t {
Expand Down

0 comments on commit f148ee5

Please sign in to comment.