Move StaffMode declaration out of paths

This commit is contained in:
Mikayla Maki 2023-01-27 15:37:36 -08:00
parent 2d889f59bf
commit 57781fd7aa
6 changed files with 28 additions and 33 deletions

View file

@ -13,6 +13,17 @@ use std::{
task::{Context, Poll},
};
#[derive(Debug, Default)]
pub struct StaffMode(pub bool);
impl std::ops::Deref for StaffMode {
type Target = bool;
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[macro_export]
macro_rules! debug_panic {
( $($fmt_arg:tt)* ) => {