Files
icarus_dm/src/utilities/string.rs
T
KD 19d6f2dc33 Code cleanup (#39)
* Code cleanup

* Removed unused source file
2025-03-24 19:51:41 -04:00

10 lines
301 B
Rust

pub fn o_to_string(val: &std::ffi::OsString) -> Result<std::string::String, std::io::Error> {
match val.clone().into_string() {
Ok(value) => Ok(value),
Err(_) => Err(std::io::Error::new(
std::io::ErrorKind::Other,
String::from("Error"),
)),
}
}