mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 10:56:29 +03:00
Inline format arguments
This feature has been stable since Rust 1.58.0.
This commit is contained in:
@@ -961,7 +961,7 @@ impl Contact {
|
||||
};
|
||||
|
||||
let finger_prints = stock_str::finger_prints(context).await;
|
||||
ret += &format!("{}.\n{}:", stock_message, finger_prints);
|
||||
ret += &format!("{stock_message}.\n{finger_prints}:");
|
||||
|
||||
let fingerprint_self = SignedPublicKey::load_self(context)
|
||||
.await?
|
||||
@@ -1499,7 +1499,7 @@ fn cat_fingerprint(
|
||||
&& !fingerprint_unverified.is_empty()
|
||||
&& fingerprint_verified != fingerprint_unverified
|
||||
{
|
||||
*ret += &format!("\n\n{} (alternative):\n{}", addr, fingerprint_unverified);
|
||||
*ret += &format!("\n\n{addr} (alternative):\n{fingerprint_unverified}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user