Skip to content

Commit

Permalink
Use PathBuf for paths in config file
Browse files Browse the repository at this point in the history
  • Loading branch information
kpcyrd committed May 6, 2021
1 parent d7e0cac commit 85c6a0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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<String>,
#[serde(default)]
Expand Down

0 comments on commit 85c6a0a

Please sign in to comment.