mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Stop abusing format! macro when construct a String
In these cases for `format!`, we're just constructing a String of the single argument with no special format.
This commit is contained in:
parent
445f1c891a
commit
5a780cb221
5 changed files with 7 additions and 7 deletions
|
@ -237,7 +237,7 @@ pub fn from_cmdline_args(args: &[String]) -> bool {
|
|||
let opt_match = match getopts::getopts(args, opts.as_slice()) {
|
||||
Ok(m) => m,
|
||||
Err(f) => {
|
||||
args_fail(format!("{}", f).as_slice());
|
||||
args_fail(f.to_string().as_slice());
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue