mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 10:48:32 +00:00
[red-knot] Prefix Type::call
and dunder_call
with try
(#16261)
This commit is contained in:
parent
16d0625dfb
commit
fb09d63e55
4 changed files with 50 additions and 87 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue