mirror of https://github.com/astral-sh/ruff
clippy
This commit is contained in:
parent
78e1df037c
commit
4dc2ca50ca
|
|
@ -152,7 +152,7 @@ impl<'db> ConstraintSetSet<'db> {
|
|||
// (or the coinductive base case).
|
||||
if self.results.contains_key(&ty) {
|
||||
return;
|
||||
};
|
||||
}
|
||||
|
||||
// Figure 3, step 1: Insert the coinductive base case for this type into the result
|
||||
// set. That ensures that if we encounter this type again recursively while we are
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ impl<'db> From<Type<'db>> for TypeKind<'db> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'db> Type<'db> {
|
||||
impl Type<'_> {
|
||||
pub(crate) fn is_atomic(self) -> bool {
|
||||
matches!(TypeKind::from(self), TypeKind::Atomic)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue