Skip to content

Commit

Permalink
Apply clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoreis42 committed Jan 23, 2025
1 parent d7f8d80 commit bfa0fd6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
8 changes: 4 additions & 4 deletions core/ephemeral.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::{
cell::{Ref, RefCell},
cell::RefCell,
rc::Rc,
};

Expand Down Expand Up @@ -632,7 +632,7 @@ mod tests {
))
);
assert_eq!(cursor.rowid, Some(2));
assert_eq!(cursor.null_flag, false);
assert!(!cursor.null_flag);
}

#[test]
Expand Down Expand Up @@ -669,7 +669,7 @@ mod tests {
))
);
assert_eq!(cursor.rowid, Some(3));
assert_eq!(cursor.null_flag, false);
assert!(!cursor.null_flag);
}

#[test]
Expand Down Expand Up @@ -698,6 +698,6 @@ mod tests {
let result = cursor.do_seek(SeekKey::IndexKey(&key), SeekOp::EQ).unwrap();
assert_eq!(result, CursorResult::Ok((None, None)));
assert_eq!(cursor.rowid, None);
assert_eq!(cursor.null_flag, true);
assert!(cursor.null_flag);
}
}
6 changes: 6 additions & 0 deletions core/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,12 @@ pub struct EphemeralTable {
pub columns: Vec<Column>, // columns
}

impl Default for EphemeralTable {
fn default() -> Self {
Self::new()
}
}

impl EphemeralTable {
pub fn new() -> Self {
Self {
Expand Down
2 changes: 1 addition & 1 deletion core/vdbe/explain.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::{ephemeral, vdbe::builder::CursorType};
use crate::vdbe::builder::CursorType;

use super::{Insn, InsnReference, OwnedValue, Program};
use std::rc::Rc;
Expand Down

0 comments on commit bfa0fd6

Please sign in to comment.