Sort on recursive search

Run clippy
This commit is contained in:
Cameron
2024-12-06 11:21:42 -05:00
parent 4a91c6344a
commit 3ce1b84604
5 changed files with 24 additions and 25 deletions

View File

@@ -132,7 +132,7 @@ impl Handler<ScanDirectoryMessage> for VideoPlaylistManager {
.into_iter()
.filter_map(|e| e.ok())
.filter(|e| e.file_type().is_file())
.filter(|e| is_video(e))
.filter(is_video)
.collect::<Vec<DirEntry>>();
let scan_dir_name = msg.directory.clone();