fix: clippy warnings

This commit is contained in:
Austin Bonander
2024-06-05 20:15:44 -07:00
parent 41089f3655
commit bae083cf79
110 changed files with 513 additions and 480 deletions

View File

@@ -68,16 +68,12 @@ unsafe extern "C" fn sqlite3_regexp_func(
}
// arg0: Regex
let regex = if let Some(regex) = get_regex_from_arg(ctx, *args.offset(0), 0) {
regex
} else {
let Some(regex) = get_regex_from_arg(ctx, *args.offset(0), 0) else {
return;
};
// arg1: value
let value = if let Some(text) = get_text_from_arg(ctx, *args.offset(1)) {
text
} else {
let Some(value) = get_text_from_arg(ctx, *args.offset(1)) else {
return;
};