19d6f2dc33
* Code cleanup * Removed unused source file
10 lines
301 B
Rust
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"),
|
|
)),
|
|
}
|
|
}
|