made boxing cleaner

This commit is contained in:
jude 2020-08-18 00:19:15 +01:00
parent 09b09c06b2
commit 08c274fb27

View File

@ -138,7 +138,7 @@ DELETE FROM todos WHERE id = ?
Ok(())
}
else {
Err(Box::try_from(TodoNotFound).unwrap())
Err(Box::new(TodoNotFound))
}
}