Convert to a pathbuf directly
This commit is contained in:
parent
83ec82ec54
commit
93196f4dd8
|
@ -32,13 +32,12 @@ impl Registry {
|
||||||
};
|
};
|
||||||
|
|
||||||
for entry in dir_walker.into_iter().filter_entry(dir_filter) {
|
for entry in dir_walker.into_iter().filter_entry(dir_filter) {
|
||||||
self.albums_fs.insert(PathBuf::from(
|
self.albums_fs.insert(
|
||||||
entry?
|
entry?
|
||||||
.path()
|
.path()
|
||||||
.strip_prefix(self.base_path.clone())?
|
.strip_prefix(self.base_path.clone())?
|
||||||
.to_str()
|
.to_path_buf(),
|
||||||
.unwrap(),
|
);
|
||||||
));
|
|
||||||
counter.tick(1);
|
counter.tick(1);
|
||||||
}
|
}
|
||||||
counter.set(self.albums_fs.len());
|
counter.set(self.albums_fs.len());
|
||||||
|
|
Reference in New Issue