fix: Update ctor macro arguments

This commit is contained in:
Ginger authored and Ellis Git committed 2026-05-03 14:39:30 +00:00
1 parent fe0d83d447
commit 6f9b4a989e
12 files changed
+30 -4

No files matched your search

+1 -1
View File
@@ -62,7 +62,7 @@ pub const INFO_SPAN_LEVEL: Level = if cfg!(debug_assertions) {
pub static DEBUGGER: LazyLock<bool> =
LazyLock::new(|| env::var("_").unwrap_or_default().ends_with("gdb"));
#[cfg_attr(debug_assertions, ctor::ctor)]
#[cfg_attr(debug_assertions, ctor::ctor(unsafe))]
#[cfg_attr(not(debug_assertions), allow(dead_code))]
fn set_panic_trap() {
if !*DEBUGGER {