update queued song #28
@@ -1,8 +1,6 @@
|
||||
pub fn path_buf_to_string(path: &std::path::PathBuf) -> String {
|
||||
let s_path = match path.to_str() {
|
||||
pub fn path_buf_to_string(path: &std::path::Path) -> String {
|
||||
match path.to_str() {
|
||||
Some(val) => String::from(val),
|
||||
None => String::new(),
|
||||
};
|
||||
|
||||
s_path
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user