diff options
Diffstat (limited to 'tedge_config/src/models/file_path.rs')
-rw-r--r-- | tedge_config/src/models/file_path.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tedge_config/src/models/file_path.rs b/tedge_config/src/models/file_path.rs index 3328c6ce..29f8a415 100644 --- a/tedge_config/src/models/file_path.rs +++ b/tedge_config/src/models/file_path.rs @@ -41,9 +41,6 @@ impl AsRef<Path> for FilePath { impl std::fmt::Display for FilePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - match self.0.to_str() { - Some(s) => write!(f, "{}", s), - None => Err(std::fmt::Error), - } + write!(f, "{}", self.0.display()) } } |