diff --git a/core/ephemeral.rs b/core/ephemeral.rs index 503bf347c..c52049230 100644 --- a/core/ephemeral.rs +++ b/core/ephemeral.rs @@ -1,5 +1,5 @@ use std::{ - cell::{Ref, RefCell}, + cell::RefCell, rc::Rc, }; @@ -632,7 +632,7 @@ mod tests { )) ); assert_eq!(cursor.rowid, Some(2)); - assert_eq!(cursor.null_flag, false); + assert!(!cursor.null_flag); } #[test] @@ -669,7 +669,7 @@ mod tests { )) ); assert_eq!(cursor.rowid, Some(3)); - assert_eq!(cursor.null_flag, false); + assert!(!cursor.null_flag); } #[test] @@ -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); } } diff --git a/core/schema.rs b/core/schema.rs index 2b0cd8056..b8751958e 100644 --- a/core/schema.rs +++ b/core/schema.rs @@ -813,6 +813,12 @@ pub struct EphemeralTable { pub columns: Vec, // columns } +impl Default for EphemeralTable { + fn default() -> Self { + Self::new() + } +} + impl EphemeralTable { pub fn new() -> Self { Self { diff --git a/core/vdbe/explain.rs b/core/vdbe/explain.rs index 84a2bf33f..483bc2d4f 100644 --- a/core/vdbe/explain.rs +++ b/core/vdbe/explain.rs @@ -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;