rust-apache-age icon indicating copy to clipboard operation
rust-apache-age copied to clipboard

Require less `mut`, allow multiple (non-mut) references to Client

Open ctron opened this issue 1 year ago • 2 comments
trafficstars

The function execute_cypher of Client requires &mut self, which doesn't seem to be required. However, having it mut seems to make it impossible to use transactions, as that would also require &mut self, which flows into the transaction.

ctron avatar May 03 '24 14:05 ctron

I'll look into that in the following week. Thanks for reporting!

Dzordzu avatar May 04 '24 12:05 Dzordzu

It was easy to come up with a PR, so here is #12 .

ctron avatar May 06 '24 09:05 ctron