2019-06-25 03:15:34 +02:00
|
|
|
use std::fmt;
|
|
|
|
|
|
|
|
|
|
#[derive(Debug)]
|
|
|
|
|
pub struct OsError(pub String);
|
|
|
|
|
|
|
|
|
|
impl fmt::Display for OsError {
|
2019-07-11 00:54:54 +02:00
|
|
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
2019-06-25 03:15:34 +02:00
|
|
|
write!(f, "{}", self.0)
|
|
|
|
|
}
|
|
|
|
|
}
|