Closed adolph closed 2 years ago
Please provide all information requested in the issue template. Otherwise this issue is not actionable and will be closed as incomplete. Also note that these examples are tested as part of the CI runs, so its unlikely that they are broken. It might therefore be required to provide an minimal reproducible example of your issue.
It seems that you should replace .load(&connection)
with .load(connection)
, because connection
is already a reference.
Closed as the error message does not even match the linked code. Please use the support forum for such questions in the future.
https://github.com/diesel-rs/diesel/blob/d4113eda1d0d432707c1a731c5df448b300ffa40/examples/sqlite/getting_started_step_3/src/bin/show_posts.rs#L8
Removal of the &mut in the above line resolved error:
&mut SqliteConnection: Connection
is not satisfied --> src/bin/show_posts.rs:17:10Connection
is not implemented for&mut SqliteConnection
note: required by a bound in
load