impl for paths
This commit is contained in:
parent
02e7f5bc0a
commit
90cf6ef934
1 changed files with 12 additions and 0 deletions
|
@ -42,3 +42,15 @@ impl OsDisplay for &std::ffi::OsStr {
|
||||||
f.write_os_str(self)
|
f.write_os_str(self)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl OsDisplay for std::path::Path {
|
||||||
|
fn fmt_os(&self, f: &mut OsStringFormatter) -> std::fmt::Result {
|
||||||
|
f.write_os_str(&self.as_os_str())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl OsDisplay for std::path::PathBuf {
|
||||||
|
fn fmt_os(&self, f: &mut OsStringFormatter) -> std::fmt::Result {
|
||||||
|
f.write_os_str(&self.as_os_str())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue