From 2a2b61b3da56dc0d170e757b9226c6f65090d9d2 Mon Sep 17 00:00:00 2001 From: ChrisGreenaway Date: Mon, 12 Jul 2021 17:29:05 +0100 Subject: CIE-437: Use Display for the path in the certificate exists message, rather than Debug (#342) --- tedge_config/src/models/file_path.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tedge_config') 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 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()) } } -- cgit v1.2.3