fix clippy

This commit is contained in:
Tamo 2023-11-29 14:51:47 +01:00 committed by Clément Renault
parent c83a33017e
commit 4fb25b8782
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
2 changed files with 7 additions and 6 deletions

View file

@ -1297,8 +1297,13 @@ impl IndexScheduler {
let task = self
.index_scheduler
.get_task(self.rtxn, task_id)
.map_err(io::Error::other)?
.ok_or_else(|| io::Error::other(Error::CorruptedTaskQueue))?;
.map_err(|err| io::Error::new(io::ErrorKind::Other, err))?
.ok_or_else(|| {
io::Error::new(
io::ErrorKind::Other,
Error::CorruptedTaskQueue,
)
})?;
serde_json::to_writer(
&mut self.buffer,