chore: small refactor of pathbuf definition

This commit is contained in:
Nickiel12 2022-12-16 11:48:41 -08:00
parent 4e36010d13
commit f12ed79f3a

View file

@ -47,8 +47,7 @@ fn main() {
let music_scanner = file_operations::MusicScanner::new(music_dir);
let mut db_path = PathBuf::new();
db_path.push("/home/nixolas/RustedBeats.db");
let db_path: PathBuf = ["home", "nixolas", "RustedBeats.db"].iter().collect();
let dbo = db_operations::DBObject::new(&db_path, false).unwrap();