From 85c6a0abec40e27fd3ea8fb742b813cca131df21 Mon Sep 17 00:00:00 2001 From: kpcyrd Date: Thu, 6 May 2021 17:13:28 +0200 Subject: [PATCH] Use PathBuf for paths in config file --- src/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.rs b/src/config.rs index ac99099..e29ec41 100644 --- a/src/config.rs +++ b/src/config.rs @@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize}; use std::collections::HashSet; use std::ffi::OsStr; use std::fs; -use std::path::Path; +use std::path::{Path, PathBuf}; const LETSENCRYPT: &str = "https://acme-v02.api.letsencrypt.org/directory"; // const LETSENCRYPT_STAGING: &str = "https://acme-staging-v02.api.letsencrypt.org/directory"; @@ -28,8 +28,8 @@ pub struct AcmeConfig { #[derive(Debug, Default, PartialEq, Serialize, Deserialize)] pub struct SystemConfig { - pub data_dir: String, - pub chall_dir: String, + pub data_dir: PathBuf, + pub chall_dir: PathBuf, #[serde(default)] pub exec: Vec, #[serde(default)]