fix: lint warnings

This commit is contained in:
Kunal Singh
2024-07-08 22:43:11 +05:30
parent 0e60f077ca
commit 00c26286ce
12 changed files with 50 additions and 60 deletions

View File

@@ -138,10 +138,7 @@ pub unsafe extern "C" fn sqlite3_column_text(
None => return std::ptr::null(),
};
match row.values.get(idx as usize) {
Some(value) => match value {
limbo_core::Value::Text(text) => text.as_bytes().as_ptr(),
_ => std::ptr::null(),
},
None => std::ptr::null(),
Some(limbo_core::Value::Text(text)) => text.as_bytes().as_ptr(),
_ => std::ptr::null(),
}
}