made boxing cleaner
This commit is contained in:
parent
09b09c06b2
commit
08c274fb27
@ -138,7 +138,7 @@ DELETE FROM todos WHERE id = ?
|
||||
Ok(())
|
||||
}
|
||||
else {
|
||||
Err(Box::try_from(TodoNotFound).unwrap())
|
||||
Err(Box::new(TodoNotFound))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user