fn tar_entry_matches<R: Read>(entry: &std::io::Result<tar::Entry<R>>, file_name: &str) -> bool {
    match entry {
        Ok(entry) => match entry.path() {
            Ok(path) => path.file_name() == Some(file_name.as_ref()),
            Err(_) => false,
        },
        Err(_) => false,
    }
}
/// Helper function that decides whether the tar file `entry` matches
/// `file_name`
Helper function that decides whether the tar file `entry` matches
`file_name`
Helper function that decides whether the tar file ` entry ` matches ` file_name `
fn tar_entry_matches<R: Read>(entry: &std::io::Result<tar::Entry<R>>, file_name: &str) -> bool {
    match entry {
        Ok(entry) => match entry.path() {
            Ok(path) => path.file_name() == Some(file_name.as_ref()),
            Err(_) => false,
        },
        Err(_) => false,
    }
}
fn tar_entry_matches < R : Read > ( entry : & std :: io :: Result < tar :: Entry < R > > , file_name : & str ) -> bool { match entry { Ok ( entry ) => match entry . path ( ) { Ok ( path ) => path . file_name ( ) == Some ( file_name . as_ref ( ) ) , Err ( _ ) => false , } , Err ( _ ) => false , } }
Helper function that decides whether the tar file `entry` matches
`file_name`
Helper function that decides whether the tar file ` entry ` matches ` file_name `
entry
&std::io::Result<tar::Entry<R>>
file_name
&str
entry
&std::io::Result<tar::Entry<R>>
file_name
&str