diff --git a/src/database/abstraction/sqlite.rs b/src/database/abstraction/sqlite.rs index 9a5245067..1544e4065 100644 --- a/src/database/abstraction/sqlite.rs +++ b/src/database/abstraction/sqlite.rs @@ -33,6 +33,10 @@ fn next(&mut self) -> Option { self.iterator.next() } struct NonAliasingBox(*mut T); impl Drop for NonAliasingBox { fn drop(&mut self) { + // TODO: figure out why this is necessary, but also this is sqlite so dont think + // i care that much. i tried checking commit history but couldn't find out why + // this was done. + #[allow(clippy::undocumented_unsafe_blocks)] unsafe { let _ = Box::from_raw(self.0); }; @@ -157,7 +161,10 @@ pub fn iter_with_guard<'a>(&'a self, guard: &'a Connection) -> Box(&'a self, from: &[u8], backwards: bool) -> Box(&'a self, from: &[u8], backwards: bool) -> Box io::Result<()> { let app; + #[allow(clippy::unnecessary_operation)] // error[E0658]: attributes on expressions are experimental #[cfg(feature = "zstd_compression")] { app = if cfg!(feature = "zstd_compression") && config.zstd_compression {