Hi, your tutorial is awesome!
But I find a little issue of diesel that the line
diesel
use crate::schema::products::dsl::*;
in ProductList implementation cannot be placed in the top which will cause an unmatched type error of id in find method of Product implementation.
ProductList
unmatched type
id
find
Product
This issue caused by a duplicated id from crate::schema::products::dsl.
crate::schema::products::dsl
Hi, did you take a look at the last version, sometimes I fix these issues but I forgot to mention them, github.com/practical-rust-web-deve...
Thanks for your reply. Your source code can works well.
It is my bad to take the line above to the top of the module. 😄
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, your tutorial is awesome!
But I find a little issue of
diesel
that the lineuse crate::schema::products::dsl::*;
in
ProductList
implementation cannot be placed in the top which will cause anunmatched type
error ofid
infind
method ofProduct
implementation.This issue caused by a duplicated
id
fromcrate::schema::products::dsl
.Hi, did you take a look at the last version, sometimes I fix these issues but I forgot to mention them, github.com/practical-rust-web-deve...
Thanks for your reply. Your source code can works well.
It is my bad to take the line above to the top of the module. 😄