We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1761236 + 2d26b28 commit 63ef59aCopy full SHA for 63ef59a
gccjit_sys/src/dynload.rs
@@ -92,7 +92,7 @@ mod platform {
92
pub unsafe fn get(&self, sym: &CStr) -> Result<*mut (), String> {
93
let ptr = GetProcAddress(self.0, sym.as_ptr() as *const _);
94
if ptr.is_null() {
95
- Some("cannot load symbol".to_string())
+ Err("cannot load symbol".to_string())
96
}
97
else {
98
Ok(ptr.cast())
0 commit comments