fix build error

This commit is contained in:
GyulyVGC
2025-12-12 00:24:54 +01:00
parent 42f3227209
commit 40add2e0dd

View File

@@ -14,9 +14,8 @@ fn log_err(self, location: Location) -> Result<T, E> {
let line = location.line; let line = location.line;
eprintln!("Sniffnet error at [{file}:{line}]: {e}"); eprintln!("Sniffnet error at [{file}:{line}]: {e}");
// in debug mode, panic on error // in debug mode, panic on error
const { #[cfg(debug_assertions)]
assert!(!cfg!(debug_assertions)); panic!();
}
} }
self self