diff options
author | initard <solo@softwareag.com> | 2022-06-10 13:59:25 +0100 |
---|---|---|
committer | initard <solo@softwareag.com> | 2022-06-16 15:18:10 +0100 |
commit | dcc7e45ca49fb99cdaa1ce232a698695dc2577bc (patch) | |
tree | e39e1b5623b57d849d6d18993f5d1658fc93cff9 /crates/core | |
parent | 46151d4ecad135589b0f496a814f63927ea7f1d2 (diff) |
tedge fixing clippy warnings #825
Signed-off-by: initard <solo@softwareag.com>
Diffstat (limited to 'crates/core')
-rw-r--r-- | crates/core/tedge/src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/core/tedge/src/main.rs b/crates/core/tedge/src/main.rs index eab007f6..e4dc777e 100644 --- a/crates/core/tedge/src/main.rs +++ b/crates/core/tedge/src/main.rs @@ -1,7 +1,7 @@ #![forbid(unsafe_code)] #![deny(clippy::mem_forget)] -use std::path::PathBuf; +use std::path::Path; use anyhow::Context; use clap::Parser; @@ -47,8 +47,8 @@ fn main() -> anyhow::Result<()> { } } -fn initialize_tedge(cfg_dir: &PathBuf) -> anyhow::Result<()> { - let config_dir = cfg_dir.as_path().display().to_string(); +fn initialize_tedge(cfg_dir: &Path) -> anyhow::Result<()> { + let config_dir = cfg_dir.display().to_string(); create_directory_with_user_group(&config_dir, "tedge", "tedge", 0o775)?; create_directory_with_user_group("/var/log/tedge", "tedge", "tedge", 0o775)?; create_directory_with_user_group( |