pub fn load<P>(config_path: P) -> Result<Config>
where
    P: AsRef<Path>,
{
    let path = config_path.as_ref().to_str().unwrap();
    info!("loading configuration from {}", path);
    let config_file = File::open(&config_path).chain_err(|| "error opening config file")?;
    parse_config(config_file)
}
/// Load the website configuration from a path.
Load the website configuration from a path.
Load the website configuration from a path .
pub fn load<P>(config_path: P) -> Result<Config>
where
    P: AsRef<Path>,
{
    let path = config_path.as_ref().to_str().unwrap();
    info!("loading configuration from {}", path);
    let config_file = File::open(&config_path).chain_err(|| "error opening config file")?;
    parse_config(config_file)
}
pub fn load < P > ( config_path : P ) -> Result < Config > where P : AsRef < Path > , { let path = config_path . as_ref ( ) . to_str ( ) . unwrap ( ) ; info ! ( " " path ) ; let config_file = File :: open ( & config_path ) . chain_err ( | | " " ) ? ; parse_config ( config_file ) }
Load the website configuration from a path.
Load the website configuration from a path .
config_path
P
config_path
P