1
Fork 0

clippy::single_char_pattern

This commit is contained in:
Matthias Krüger 2021-07-17 23:35:57 +02:00
parent dc722bfd74
commit d709e6efef
4 changed files with 5 additions and 5 deletions

View file

@ -1876,7 +1876,7 @@ fn parse_extern_dep_specs(
)
});
let locparts: Vec<_> = loc.split(":").collect();
let locparts: Vec<_> = loc.split(':').collect();
let spec = match &locparts[..] {
["raw", ..] => {
// Don't want `:` split string

View file

@ -684,7 +684,7 @@ mod parse {
Some(v) => v,
};
*slot = Some(match v.trim_end_matches("s") {
*slot = Some(match v.trim_end_matches('s') {
"statement" | "stmt" => MirSpanview::Statement,
"terminator" | "term" => MirSpanview::Terminator,
"block" | "basicblock" => MirSpanview::Block,