Linter changes
This commit is contained in:
parent
079e9f5e11
commit
40e142ccc7
6 changed files with 29 additions and 56 deletions
src/config
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue