Skip to content

Commit 2d26b28

Browse files
Fix compilation error on windows
1 parent 1761236 commit 2d26b28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gccjit_sys/src/dynload.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ mod platform {
9292
pub unsafe fn get(&self, sym: &CStr) -> Result<*mut (), String> {
9393
let ptr = GetProcAddress(self.0, sym.as_ptr() as *const _);
9494
if ptr.is_null() {
95-
Some("cannot load symbol".to_string())
95+
Err("cannot load symbol".to_string())
9696
}
9797
else {
9898
Ok(ptr.cast())

0 commit comments

Comments
 (0)