Update to code to Rust 1.67
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-02-02 10:22:15 +01:00
parent 107b613be5
commit f2e4826b14
4 changed files with 16 additions and 26 deletions

View File

@ -13,7 +13,7 @@ impl EntityManager<User> {
F: FnOnce(User) -> User,
{
let user = match self.find_by_user_id(id)? {
None => return new_error(format!("Failed to find user {:?}", id)),
None => return new_error(format!("Failed to find user {id:?}")),
Some(user) => user,
};
@ -134,8 +134,7 @@ impl UsersSyncBackend for EntityManager<User> {
let user = match self.find_by_user_id(id)? {
None => {
return new_error(format!(
"Could not delete account {:?} because it was not found!",
id
"Could not delete account {id:?} because it was not found!"
));
}
Some(s) => s,