clippy::useless_format
This commit is contained in:
parent
d0a8a12dc6
commit
3fd8cbb404
14 changed files with 17 additions and 17 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue