clippy::useless_format

This commit is contained in:
Matthias Krüger 2021-07-21 22:43:19 +02:00
parent d0a8a12dc6
commit 3fd8cbb404
14 changed files with 17 additions and 17 deletions

View file

@ -2018,7 +2018,7 @@ impl Target {
if base.is_builtin {
// This can cause unfortunate ICEs later down the line.
return Err(format!("may not set is_builtin for targets not built-in"));
return Err("may not set is_builtin for targets not built-in".to_string());
}
// Each field should have been read using `Json::remove_key` so any keys remaining are unused.
let remaining_keys = obj.as_object().ok_or("Expected JSON object for target")?.keys();