Fix clippy

This commit is contained in:
김선우
2024-09-15 16:23:27 +09:00
parent d4971a4706
commit 28884181be
20 changed files with 153 additions and 118 deletions

View File

@@ -83,6 +83,7 @@ pub struct Cursor {
// SAFETY: The limbo_core crate guarantees that `Cursor` is thread-safe.
unsafe impl Send for Cursor {}
#[allow(unused_variables, clippy::arc_with_non_send_sync)]
#[pymethods]
impl Cursor {
#[pyo3(signature = (sql, parameters=None))]
@@ -229,6 +230,7 @@ impl Connection {
}
}
#[allow(clippy::arc_with_non_send_sync)]
#[pyfunction]
pub fn connect(path: &str) -> Result<Connection> {
let io = Arc::new(limbo_core::PlatformIO::new().map_err(|e| {