clippy::perf fixes
single_char_pattern and to_string_in_format_args
This commit is contained in:
parent
4e8fb743cc
commit
de2abc29e9
4 changed files with 9 additions and 9 deletions
|
@ -126,7 +126,7 @@ pub fn parse_cfgspecs(cfgspecs: Vec<String>) -> FxHashSet<(String, Option<String
|
|||
|
||||
// If the user tried to use a key="value" flag, but is missing the quotes, provide
|
||||
// a hint about how to resolve this.
|
||||
if s.contains("=") && !s.contains("=\"") && !s.ends_with("\"") {
|
||||
if s.contains('=') && !s.contains("=\"") && !s.ends_with('"') {
|
||||
error!(concat!(
|
||||
r#"expected `key` or `key="value"`, ensure escaping is appropriate"#,
|
||||
r#" for your shell, try 'key="value"' or key=\"value\""#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue