Skip to content

Commit 0fe1a90

Browse files
committed
style: fix preprocessor indentation [skip ci]
1 parent 040f640 commit 0fe1a90

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/configuration.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,23 @@ impl Config {
5252
Config::default()
5353
}
5454

55-
#[cfg(feature = "configuration")] {
56-
use std::fs::read_to_string;
55+
#[cfg(feature = "configuration")] {
56+
use std::fs::read_to_string;
5757

58-
let file = match to_parse {
59-
encore::ConfigurationPath::Default => DEFAULT_CFG_PATH,
60-
encore::ConfigurationPath::Custom(s) => s
61-
};
62-
#[allow(deprecated)]
63-
let file = format!("{}/{}", std::env::home_dir().unwrap().to_string_lossy().to_string(), file);
58+
let file = match to_parse {
59+
encore::ConfigurationPath::Default => DEFAULT_CFG_PATH,
60+
encore::ConfigurationPath::Custom(s) => s
61+
};
62+
#[allow(deprecated)]
63+
let file = format!("{}/{}", std::env::home_dir().unwrap().to_string_lossy().to_string(), file);
6464

65-
let buf = read_to_string(file).unwrap();
65+
let buf = read_to_string(file).unwrap();
6666

67-
let parsed: Config = basic_toml::from_str(&buf).unwrap();
68-
dbg!(&parsed);
67+
let parsed: Config = basic_toml::from_str(&buf).unwrap();
68+
dbg!(&parsed);
6969

70-
parsed
71-
}
70+
parsed
71+
}
7272
}
7373
}
7474

0 commit comments

Comments
 (0)