Improvements to util module
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
pub fn path_buf_to_string(path: &std::path::PathBuf) -> String {
|
pub fn path_buf_to_string(path: &std::path::Path) -> String {
|
||||||
let s_path = match path.to_str() {
|
match path.to_str() {
|
||||||
Some(val) => String::from(val),
|
Some(val) => String::from(val),
|
||||||
None => String::new(),
|
None => String::new(),
|
||||||
};
|
}
|
||||||
|
|
||||||
s_path
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user