refactor: adjust dirs structure

This commit is contained in:
GyDi
2021-12-14 16:07:15 +08:00
parent db802e959d
commit 4719649bf4
9 changed files with 35 additions and 20 deletions

View File

@@ -3,7 +3,7 @@ use serde_yaml::{Mapping, Value};
use std::{fs, path::PathBuf};
use super::{profiles::ProfilesConfig, ClashController};
use crate::init::app_home_dir;
use crate::utils::app_home_dir;
/// read data from yaml as struct T
pub fn read_yaml<T: DeserializeOwned>(path: PathBuf) -> T {