Fix some clippy warnings.

This commit is contained in:
Dan Gohman
2018-11-29 10:27:49 -08:00
parent 976a5a2e7e
commit f7dc961d2c
2 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ pub extern "C" fn Unwind() {
#[no_mangle]
pub extern "C" fn LookupCodeSegment(_pc: *const ::std::os::raw::c_void) -> *const CodeSegment {
// TODO: Implement this.
unsafe { mem::transmute(-1isize) }
-1isize as *const CodeSegment
}
/// A simple guard to ensure that `JMP_BUFS` is reset when we're done.