[red-knot] Prefix Type::call and dunder_call with try (#16261)

This commit is contained in:
Micha Reiser 2025-02-20 09:05:04 +00:00 committed by GitHub
parent 16d0625dfb
commit fb09d63e55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 50 additions and 87 deletions

View file

@ -74,7 +74,6 @@ mod tests {
///
/// ## Panics
/// If there are pending database snapshots.
#[allow(unused)]
pub(crate) fn take_salsa_events(&mut self) -> Vec<salsa::Event> {
let inner = Arc::get_mut(&mut self.events)
.expect("expected no pending salsa database snapshots.");
@ -86,7 +85,6 @@ mod tests {
///
/// ## Panics
/// If there are pending database snapshots.
#[allow(unused)]
pub(crate) fn clear_salsa_events(&mut self) {
self.take_salsa_events();
}