diff options
Diffstat (limited to 'crates/common/tedge_config/src/models')
-rw-r--r-- | crates/common/tedge_config/src/models/file_path.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/common/tedge_config/src/models/file_path.rs b/crates/common/tedge_config/src/models/file_path.rs index 29f8a415..62ef5723 100644 --- a/crates/common/tedge_config/src/models/file_path.rs +++ b/crates/common/tedge_config/src/models/file_path.rs @@ -44,3 +44,9 @@ impl std::fmt::Display for FilePath { write!(f, "{}", self.0.display()) } } + +impl Into<PathBuf> for FilePath { + fn into(self) -> PathBuf { + PathBuf::from(self.0) + } +} |