Skip to content

Commit c2ae588

Browse files
committed
f No need to cast error
1 parent 9e3e9db commit c2ae588

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/event.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,7 @@ where
203203
fn persist_queue(&self, locked_queue: &VecDeque<Arc<Event>>) -> Result<(), Error> {
204204
self.persister
205205
.persist(EVENTS_PERSISTENCE_KEY, &EventQueueSerWrapper(locked_queue))
206-
.map_err(|_| Error::PersistenceFailed)?;
207-
Ok(())
206+
.map_err(|_| Error::PersistenceFailed)
208207
}
209208
}
210209

0 commit comments

Comments
 (0)