Linter changes

This commit is contained in:
Neshura 2023-12-17 20:35:37 +01:00
parent 079e9f5e11
commit 40e142ccc7
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
6 changed files with 29 additions and 56 deletions
src/config

View file

@ -11,10 +11,6 @@ pub(crate) struct Config {
}
impl Config {
pub(crate) fn new() -> Result<Self, Box<dyn Error>> {
todo!()
}
pub(crate) fn load() -> Result<Self, Box<dyn Error>> {
let cfg: Self = confy::load_path("./config.toml")?;
if cfg.instance.is_empty() {
@ -28,10 +24,6 @@ impl Config {
});
Ok(cfg)
}
pub(crate) fn save() -> Result<(), Box<dyn Error>> {
todo!()
}
}
impl Default for Config {