Skip to content

Commit b8b323e

Browse files
committed
turned out I was forcing myself to panic
1 parent a5e76ed commit b8b323e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
1111
pub const fn null<T>() -> *mut T { 0 as *mut T }
1212

1313
#[no_mangle]
14-
pub extern "C" fn main() -> ! {
14+
pub extern "C" fn main() {
1515
unsafe {
1616
consoleInit(null());
1717

@@ -42,7 +42,6 @@ pub extern "C" fn main() -> ! {
4242
}
4343

4444
consoleExit(null());
45-
panic!("Success. We shall however think on a way of exiting cleanly.");
4645
}
4746
}
4847

0 commit comments

Comments
 (0)