This commit is contained in:
Ayaz Hafiz 2022-05-20 17:47:21 -04:00
parent bc2d0a2c7a
commit 4a77ce9eca
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 3 additions and 3 deletions

View file

@ -383,7 +383,7 @@ impl ObligationCache<'_> {
}
fn check_impl(&mut self, impl_key: ImplKey) {
if let Some(_) = self.impl_cache.get(&impl_key) {
if self.impl_cache.get(&impl_key).is_some() {
return;
}
@ -422,7 +422,7 @@ impl ObligationCache<'_> {
opaque_real_var: Variable,
derive_region: Region,
) {
if let Some(_) = self.derive_cache.get(&derive_key) {
if self.derive_cache.get(&derive_key).is_some() {
return;
}