Improvements to util module

This commit is contained in:
2025-06-28 17:00:39 -04:00
parent 440c320225
commit 6e3d4a76ef

View File

@@ -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
}
}