chore: small refactor of pathbuf definition
This commit is contained in:
parent
4e36010d13
commit
f12ed79f3a
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue