Move StaffMode declaration out of paths
This commit is contained in:
parent
2d889f59bf
commit
57781fd7aa
6 changed files with 28 additions and 33 deletions
|
@ -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)* ) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue