tor-config: Fix build when expand-paths is disabled

This commit is contained in:
Ian Jackson 2023-03-21 16:33:12 +00:00
parent 42ad8d99aa
commit a0b78837ad
1 changed files with 5 additions and 2 deletions

View File

@ -5,8 +5,11 @@
use std::path::{Path, PathBuf};
use directories::{BaseDirs, ProjectDirs};
use once_cell::sync::Lazy;
#[cfg(feature= "expand-paths")]
use {
directories::{BaseDirs, ProjectDirs},
once_cell::sync::Lazy,
};
use serde::{Deserialize, Serialize};
#[cfg(feature = "expand-paths")]
use std::borrow::Cow;