Fix clippy warnings

This commit is contained in:
gwenn
2021-01-02 10:49:29 +01:00
parent 3b9f5e92ad
commit 2319165b59
4 changed files with 11 additions and 9 deletions

View File

@@ -157,7 +157,7 @@ impl ArrayTabCursor<'_> {
unsafe impl VTabCursor for ArrayTabCursor<'_> {
fn filter(&mut self, idx_num: c_int, _idx_str: Option<&str>, args: &Values<'_>) -> Result<()> {
if idx_num > 0 {
self.ptr = args.get_array(0)?;
self.ptr = args.get_array(0);
} else {
self.ptr = None;
}