diff --git a/src/helpers/extracter.rs b/src/helpers/extracter.rs index 969a1556..1175da8a 100644 --- a/src/helpers/extracter.rs +++ b/src/helpers/extracter.rs @@ -15,6 +15,12 @@ pub trait TarEntriesVisitor { fn visit(&mut self, entries: Entries<'_, R>) -> Result<(), BinstallError>; } +impl TarEntriesVisitor for &mut V { + fn visit(&mut self, entries: Entries<'_, R>) -> Result<(), BinstallError> { + (*self).visit(entries) + } +} + /// * `f` - If Some, then this function will pass /// the entries of the `dat` to it and let it decides /// what to do with the tar.