chore: rust fmpt

This commit is contained in:
realaravinth
2022-05-10 22:48:07 +05:30
parent b7a8716a82
commit 1d8554cb36
7 changed files with 16 additions and 15 deletions

View File

@@ -121,7 +121,6 @@ impl Settings {
pub fn new() -> Result<Self, ConfigError> {
let mut s = Config::new();
const CURRENT_DIR: &str = "./config/default.toml";
const ETC: &str = "/etc/mcaptcha/config.toml";
@@ -163,8 +162,6 @@ impl Settings {
s.set("database.pool", 2.to_string())
.expect("Couldn't set database pool count");
match s.try_into() {
Ok(val) => Ok(val),
Err(e) => Err(ConfigError::Message(format!("\n\nError: {}. If it says missing fields, then please refer to https://github.com/mCaptcha/mcaptcha#configuration to learn more about how mcaptcha reads configuration\n\n", e))),