Skip to content

Commit

Permalink
chore(parse): lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekmedia committed May 23, 2024
1 parent a75b3e5 commit a391534
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ impl CcxOptions {
}
}

self.num_input_files = self.num_input_files + 1;
self.num_input_files += 1;

0
}
Expand Down
2 changes: 2 additions & 0 deletions src/rust/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ pub unsafe fn string_to_c_char(a: &str) -> *mut ::std::os::raw::c_char {
s.into_raw()
}

/// # Safety
/// The pointer returned has to be deallocated using from_raw() at some point
pub unsafe fn string_null() -> *mut c_char {
std::ptr::null_mut()
}
Expand Down

0 comments on commit a391534

Please sign in to comment.