From f12ed79f3a81b05990a4e90d07308d024d012b22 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Fri, 16 Dec 2022 11:48:41 -0800 Subject: [PATCH] chore: small refactor of pathbuf definition --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7b0ed77..111a36e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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();