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(())
}
pub fn restore_sequential<F: Fn(&Path) -> Result<(), Error>>(
pub fn restore_sequential<F>(
&mut self,
path: &mut PathBuf, // used for error reporting
filename: &OsStr, // repeats path last component
parent: &nix::dir::Dir,
create_new: bool,
callback: &F,
) -> Result<(), Error> {
) -> Result<(), Error>
where F: Fn(&Path) -> Result<(), Error>
{
let parent_fd = parent.as_raw_fd();