src/catar/decoder.rs: cleanup style

This commit is contained in:
Dietmar Maurer 2019-03-11 08:14:28 +01:00
parent 656b23e107
commit fc2bf37ead

View File

@ -207,14 +207,16 @@ impl <'a, R: Read> CaTarDecoder<'a, R> {
Ok(()) Ok(())
} }
pub fn restore_sequential<F: Fn(&Path) -> Result<(), Error>>( pub fn restore_sequential<F>(
&mut self, &mut self,
path: &mut PathBuf, // used for error reporting path: &mut PathBuf, // used for error reporting
filename: &OsStr, // repeats path last component filename: &OsStr, // repeats path last component
parent: &nix::dir::Dir, parent: &nix::dir::Dir,
create_new: bool, create_new: bool,
callback: &F, callback: &F,
) -> Result<(), Error> { ) -> Result<(), Error>
where F: Fn(&Path) -> Result<(), Error>
{
let parent_fd = parent.as_raw_fd(); let parent_fd = parent.as_raw_fd();