enable uninlined_format_args lint

This commit is contained in:
Charles Hall 2024-05-14 19:19:54 -07:00
parent baab928281
commit 86218f4771
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
3 changed files with 3 additions and 2 deletions

View file

@ -81,6 +81,7 @@ tests_outside_test_module = "warn"
too_many_lines = "warn"
try_err = "warn"
undocumented_unsafe_blocks = "warn"
uninlined_format_args = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unnecessary_self_imports = "warn"

View file

@ -11,7 +11,7 @@ fn version() -> String {
let cargo_pkg_version = env!("CARGO_PKG_VERSION");
match option_env!("GRAPEVINE_VERSION_EXTRA") {
Some(x) => format!("{} ({})", cargo_pkg_version, x),
Some(x) => format!("{cargo_pkg_version} ({x})"),
None => cargo_pkg_version.to_owned(),
}
}

View file

@ -822,7 +822,7 @@ impl Service {
.filter(|v| v.starts_with('@'))
.unwrap_or(sender.as_str());
let server_name = services().globals.server_name();
let server_user = format!("@grapevine:{}", server_name);
let server_user = format!("@grapevine:{server_name}");
let content = serde_json::from_str::<ExtractMembership>(pdu.content.get())
.map_err(|_| Error::bad_database("Invalid content in pdu."))?;