Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
orlp committed Jan 28, 2025
1 parent 955159c commit d22b97c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
8 changes: 3 additions & 5 deletions crates/polars-error/src/signals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,9 @@ pub fn catch_keyboard_interrupt<R, F: FnOnce() -> R + UnwindSafe>(
try_register_catcher()?;
let ret = catch_unwind(try_fn);
unregister_catcher();
ret.map_err(|p| {
match p.downcast::<KeyboardInterrupt>() {
Ok(_) => KeyboardInterrupt,
Err(p) => std::panic::resume_unwind(p),
}
ret.map_err(|p| match p.downcast::<KeyboardInterrupt>() {
Ok(_) => KeyboardInterrupt,
Err(p) => std::panic::resume_unwind(p),
})
}

Expand Down
1 change: 0 additions & 1 deletion crates/polars-stream/src/async_executor/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use std::task::{Context, Poll, Wake, Waker};

use atomic_waker::AtomicWaker;
use parking_lot::Mutex;

use polars_error::signals::try_raise_keyboard_interrupt;

/// The state of the task. Can't be part of the TaskData enum as it needs to be
Expand Down

0 comments on commit d22b97c

Please sign in to comment.