summaryrefslogtreecommitdiffstats
path: root/tedge_config
diff options
context:
space:
mode:
authorChrisGreenaway <chris.greenaway@softwareag.com>2021-07-12 17:29:05 +0100
committerGitHub <noreply@github.com>2021-07-12 17:29:05 +0100
commit2a2b61b3da56dc0d170e757b9226c6f65090d9d2 (patch)
treef92035b32c2ac96a896bc717b9d24f7764fc0986 /tedge_config
parent3eabd0542266bd62411f62b1ed72478161a59464 (diff)
CIE-437: Use Display for the path in the certificate exists message, rather than Debug (#342)
Diffstat (limited to 'tedge_config')
-rw-r--r--tedge_config/src/models/file_path.rs5
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())
}
}