summaryrefslogtreecommitdiffstats
path: root/crates/common/tedge_config/src/models
diff options
context:
space:
mode:
authorinitard <solo@softwareag.com>2022-06-15 09:11:58 +0100
committerinitard <solo@softwareag.com>2022-06-16 15:18:10 +0100
commit278923ae68d5fd511eafdb024d86597a38b1abb8 (patch)
treef8e16d179a34984a07a4b0b8844512d0fbb3b54f /crates/common/tedge_config/src/models
parent70520a47673cd2eb7fb53fda4d064c8916d7c53c (diff)
tedge_config fixing clippy warnings #825
Signed-off-by: initard <solo@softwareag.com>
Diffstat (limited to 'crates/common/tedge_config/src/models')
-rw-r--r--crates/common/tedge_config/src/models/file_path.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/common/tedge_config/src/models/file_path.rs b/crates/common/tedge_config/src/models/file_path.rs
index 62ef5723..7b80c972 100644
--- a/crates/common/tedge_config/src/models/file_path.rs
+++ b/crates/common/tedge_config/src/models/file_path.rs
@@ -45,8 +45,12 @@ impl std::fmt::Display for FilePath {
}
}
+// If we `impl From<FilePath> for PathBuf` as suggested by clippy,
+// Then we can no more have a generic implementation
+// `impl<T> From<T> for FilePath where PathBuf: From<T>`
+#[allow(clippy::from_over_into)]
impl Into<PathBuf> for FilePath {
fn into(self) -> PathBuf {
- PathBuf::from(self.0)
+ self.0
}
}