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).
|
// (or the coinductive base case).
|
||||||
if self.results.contains_key(&ty) {
|
if self.results.contains_key(&ty) {
|
||||||
return;
|
return;
|
||||||
};
|
}
|
||||||
|
|
||||||
// Figure 3, step 1: Insert the coinductive base case for this type into the result
|
// 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
|
// 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 {
|
pub(crate) fn is_atomic(self) -> bool {
|
||||||
matches!(TypeKind::from(self), TypeKind::Atomic)
|
matches!(TypeKind::from(self), TypeKind::Atomic)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue