Skip to content

Commit

Permalink
Merge pull request #15 from robsdedude/fix/lints-rust-1.78.0
Browse files Browse the repository at this point in the history
Fix new lints with rust 1.78
  • Loading branch information
robsdedude committed May 3, 2024
2 parents 06d2006 + 8c2d44a commit 239f509
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion neo4j/src/driver/io/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions neo4j/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
}

Expand Down
7 changes: 0 additions & 7 deletions testkit_backend/src/testkit_backend/bookmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,3 @@ fn make_consumer_fn(
}
}
}

#[derive(Debug)]
pub(super) struct TestKitBookmarkManager {
// id: BackendId,
// backend_io: Arc<AtomicRefCell<BackendIo>>,
// id_generator: Generator,
}
2 changes: 1 addition & 1 deletion testkit_backend/src/testkit_backend/responses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ impl TryFrom<SummaryWithQuery> 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()
Expand Down

0 comments on commit 239f509

Please sign in to comment.