pub fn load_from_path(path: PathBuf) -> Result<Self> {
        log::debug!("loading user config at {:?}", path);
        Ok(toml::from_str(&match fs::read_to_string(&path) {
            Ok(config) => config,
            Err(err) => return Err(Error::Io(path, err)),
        })?)
    }
/// Load the config file from the given `path`.
Load the config file from the given `path`.
Load the config file from the given ` path ` .
pub fn load_from_path(path: PathBuf) -> Result<Self> {
        log::debug!("loading user config at {:?}", path);
        Ok(toml::from_str(&match fs::read_to_string(&path) {
            Ok(config) => config,
            Err(err) => return Err(Error::Io(path, err)),
        })?)
    }
pub fn load_from_path ( path : PathBuf ) -> Result < Self > { log :: debug ! ( " " path ) ; Ok ( toml :: from_str ( & match fs :: read_to_string ( & path ) { Ok ( config ) => config , Err ( err ) => return Err ( Error :: Io ( path , err ) ) , } ) ? ) }
Load the config file from the given `path`.
Load the config file from the given ` path ` .
path
PathBuf
path
PathBuf