Skip to content

Commit fcb6b35

Browse files
committed
capi: fix 'unused return value' warnings from cargo check
1 parent fc9ee6a commit fcb6b35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: regex-capi/src/rure.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ ffi_fn! {
257257
fn rure_iter_capture_names_free(it: *mut IterCaptureNames) {
258258
unsafe {
259259
let it = &mut *it;
260-
while let Some(ptr) = it.name_ptrs.pop(){
261-
CString::from_raw(ptr);
260+
while let Some(ptr) = it.name_ptrs.pop() {
261+
let _ = CString::from_raw(ptr);
262262
}
263263
Box::from_raw(it);
264264
}
@@ -624,6 +624,6 @@ fn rure_escape(
624624

625625
ffi_fn! {
626626
fn rure_cstring_free(s: *mut c_char) {
627-
unsafe { CString::from_raw(s); }
627+
unsafe { let _ = CString::from_raw(s); }
628628
}
629629
}

0 commit comments

Comments
 (0)