aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src/program
diff options
context:
space:
mode:
Diffstat (limited to 'mingling_core/src/program')
-rw-r--r--mingling_core/src/program/once_exec.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/mingling_core/src/program/once_exec.rs b/mingling_core/src/program/once_exec.rs
index f757893..f6eb0c0 100644
--- a/mingling_core/src/program/once_exec.rs
+++ b/mingling_core/src/program/once_exec.rs
@@ -1,9 +1,6 @@
use crate::THIS_PROGRAM;
use crate::{Program, ProgramCollect, RenderResult, error::ProgramExecuteError};
-#[cfg(not(feature = "async"))]
-use crate::error::ProgramPanic;
-
// Async program
#[cfg(feature = "async")]
impl<C> Program<C>
@@ -163,7 +160,7 @@ where
})) {
Ok(result) => result,
Err(panic_info) => {
- let panic_payload = ProgramPanic {
+ let panic_payload = crate::error::ProgramPanic {
payload: panic_info,
};