more clippy::complexity fixes
This commit is contained in:
parent
fbf8b937b4
commit
de59844c98
13 changed files with 23 additions and 41 deletions
|
@ -192,7 +192,7 @@ impl Mismatch {
|
|||
let crate_name = std::env::var("CARGO_CRATE_NAME").ok()?;
|
||||
|
||||
// If we're not in a "rustc_" crate, bail.
|
||||
let Some(("rustc", slug_prefix)) = crate_name.split_once("_") else { return None };
|
||||
let Some(("rustc", slug_prefix)) = crate_name.split_once('_') else { return None };
|
||||
|
||||
let slug_name = slug.segments.first()?.ident.to_string();
|
||||
if !slug_name.starts_with(slug_prefix) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue