This commit is contained in:
rustmailer
2026-03-17 11:39:02 +08:00
parent 5028061f20
commit 8a42fcdb4a
7 changed files with 242 additions and 169 deletions
+2 -1
View File
@@ -106,11 +106,12 @@ macro_rules! raise_error {
($msg:expr, $code:expr) => {
$crate::modules::error::BichonError::Generic {
message: $msg,
location: snafu::Location::default(),
code: $code,
location: snafu::location!()
}
};
}
#[macro_export]
macro_rules! run_with_timeout {
($duration:expr, $task:expr, $err_msg:expr) => {{