ed991cb509
Add GitHub Actions checks: - Clippy is placated - Rustfmt doesn't produce any changes - Shell completion scripts are current
17 lines
274 B
Rust
17 lines
274 B
Rust
use crate::common::*;
|
|
|
|
pub(crate) struct InterruptGuard;
|
|
|
|
impl InterruptGuard {
|
|
pub(crate) fn new() -> Self {
|
|
InterruptHandler::instance().block();
|
|
Self
|
|
}
|
|
}
|
|
|
|
impl Drop for InterruptGuard {
|
|
fn drop(&mut self) {
|
|
InterruptHandler::instance().unblock();
|
|
}
|
|
}
|