From c7ea1433942bee14be096f39c67136801039263f Mon Sep 17 00:00:00 2001 From: Jokler Date: Sat, 7 Dec 2019 20:06:20 +0100 Subject: Run cargo fmt on all files --- src/plugins/remind/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/plugins/remind/mod.rs') diff --git a/src/plugins/remind/mod.rs b/src/plugins/remind/mod.rs index 1e464b4..b03aebc 100644 --- a/src/plugins/remind/mod.rs +++ b/src/plugins/remind/mod.rs @@ -140,7 +140,8 @@ impl Remind { debug!("New event: {:?}", event); - Ok(self.events + Ok(self + .events .write() .insert_event(&event) .map(|id| format!("Created reminder with id {} at {} UTC", id, time))?) @@ -168,7 +169,8 @@ impl Remind { .remove(0) .parse::() .context(ErrorKind::Parsing)?; - let event = self.events + let event = self + .events .read() .get_event(id) .context(ErrorKind::NotFound)?; -- cgit v1.2.3-70-g09d2