Refactor staff mode into a seperate crate and make copilot initialization wait for the staff mode flag to be flipped
This commit is contained in:
parent
1627cf7eae
commit
6bfecd7f66
14 changed files with 100 additions and 32 deletions
|
@ -17,17 +17,6 @@ pub use backtrace::Backtrace;
|
|||
use futures::Future;
|
||||
use rand::{seq::SliceRandom, Rng};
|
||||
|
||||
#[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