mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-21 13:08:42 +00:00
Forward impl AbstractFilesystem
for &Vfs
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
3c30722a06
commit
44d43113f4
1 changed files with 6 additions and 0 deletions
|
@ -37,3 +37,9 @@ impl AbstractFilesystem for Vfs {
|
|||
Ok(self.0.get(&*rel_path).map(Clone::clone).unwrap_or_default())
|
||||
}
|
||||
}
|
||||
|
||||
impl AbstractFilesystem for &Vfs {
|
||||
fn file_names_in(&self, rel_path: &str) -> io::Result<HashSet<Box<str>>> {
|
||||
(*self).file_names_in(rel_path)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue