New version of clippy has a lot of new lints

Lots of new clippy lints due to toolchain upgrade.

Made the Message::error field pub(crate) again, it was the odd one out
and it seemed a reasonable way to shut up clippy.
This commit is contained in:
Floris Bruynooghe
2021-01-18 22:57:41 +01:00
parent 2435803fa3
commit 83dd1c6232
10 changed files with 98 additions and 86 deletions

View File

@@ -1555,10 +1555,9 @@ pub unsafe extern "C" fn dc_create_contact(
let name = to_string_lossy(name);
block_on(async move {
match Contact::create(&ctx, name, to_string_lossy(addr)).await {
Ok(id) => id,
Err(_) => 0,
}
Contact::create(&ctx, name, to_string_lossy(addr))
.await
.unwrap_or(0)
})
}