Skip to content

Commit

Permalink
fix linter error from belt config (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
waltzofpearls authored Jun 3, 2024
1 parent 4b652ea commit 2c5d6c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions belt/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,12 @@ where
}

pub fn add(&mut self, to_add: &str) -> Result<()> {
match to_add.parse::<Tz>().and_then(|_| {
let result = to_add.parse::<Tz>().and_then(|_| {
self.store.timezones.push(to_add.to_string());
confy::store(&self.app, None, &self.store).map_err(|err| format!("{}", err))
}) {
});

match result {
Ok(_) => writeln!(
self.out,
"{}",
Expand Down

0 comments on commit 2c5d6c5

Please sign in to comment.