mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 15:06:30 +03:00
Inline format arguments
This feature has been stable since Rust 1.58.0.
This commit is contained in:
@@ -596,7 +596,7 @@ impl Context {
|
||||
},
|
||||
)
|
||||
.await?;
|
||||
Ok(format!("[{}]", json))
|
||||
Ok(format!("[{json}]"))
|
||||
}
|
||||
|
||||
/// Renders JSON-object for status updates as used on the wire.
|
||||
@@ -634,7 +634,7 @@ impl Context {
|
||||
if json.is_empty() {
|
||||
Ok(None)
|
||||
} else {
|
||||
Ok(Some(format!(r#"{{"updates":[{}]}}"#, json)))
|
||||
Ok(Some(format!(r#"{{"updates":[{json}]}}"#)))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user