diff --git a/neo4j/src/driver/io/pool.rs b/neo4j/src/driver/io/pool.rs index 47d1936..3c8f437 100644 --- a/neo4j/src/driver/io/pool.rs +++ b/neo4j/src/driver/io/pool.rs @@ -551,7 +551,7 @@ impl RoutingPool { Ok(mut new_rt) => { if args.db.is_some() { let db = args.db.cloned(); - new_rt.database = db.clone(); + new_rt.database.clone_from(&db); rts.insert(db.clone(), new_rt); self.clean_up_pools(rts); Ok(db) diff --git a/neo4j/src/lib.rs b/neo4j/src/lib.rs index 7d0c197..77bd805 100644 --- a/neo4j/src/lib.rs +++ b/neo4j/src/lib.rs @@ -233,6 +233,7 @@ pub mod transaction { mod private { // Trait to prevent traits from being implemented outside of this crate. + #[allow(dead_code)] pub trait Sealed {} } diff --git a/testkit_backend/src/testkit_backend/bookmarks.rs b/testkit_backend/src/testkit_backend/bookmarks.rs index 5c97ba0..dd99930 100644 --- a/testkit_backend/src/testkit_backend/bookmarks.rs +++ b/testkit_backend/src/testkit_backend/bookmarks.rs @@ -128,10 +128,3 @@ fn make_consumer_fn( } } } - -#[derive(Debug)] -pub(super) struct TestKitBookmarkManager { - // id: BackendId, - // backend_io: Arc>, - // id_generator: Generator, -} diff --git a/testkit_backend/src/testkit_backend/responses.rs b/testkit_backend/src/testkit_backend/responses.rs index ed98f38..dfb4ee3 100644 --- a/testkit_backend/src/testkit_backend/responses.rs +++ b/testkit_backend/src/testkit_backend/responses.rs @@ -307,7 +307,7 @@ impl TryFrom for Summary { parameters, } = summary; let mut summary: Self = (*summary).clone().try_into()?; - summary.query.text = (*query).clone(); + summary.query.text.clone_from(&*query); summary.query.parameters = (*parameters) .clone() .unwrap_or_default()