Refactor Result::Ok to Ok

pull/1803/head
Joseph Harrison-Lim 3 years ago
parent 209112bdbc
commit f1b21af8bc
No known key found for this signature in database
GPG Key ID: 5DAB214D5E62987D

@ -24,7 +24,7 @@ pub struct LspConfig {
impl Config {
pub fn load(config_path: PathBuf) -> Result<Config, Error> {
match std::fs::read_to_string(config_path) {
Ok(config) => Result::Ok(toml::from_str(&config)
Ok(config) => Ok(toml::from_str(&config)
.map(merge_keys)
.unwrap_or_else(|err| {
eprintln!("Bad config: {}", err);

Loading…
Cancel
Save