-
-
Notifications
You must be signed in to change notification settings - Fork 521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scripts generated by sea-orm-cli
cannot pass clippy
#296
Comments
Hi @YoshieraHuang, thanks for pointing that out! We could fix it for sure. |
Hi, it seems that you are not using Or is it really how we generate the entity for now? @billy1624 |
Yes! It's generated by codegen not derived by derive macros |
Oh, the following shouldn't warn: #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
// no need for impl RelationTrait for Relation |
Correct, but the point is codegen with #[derive(Copy, Clone, Debug, EnumIter)]
pub enum Relation {}
impl RelationTrait for Relation {
fn def(&self) -> RelationDef {
match self {
_ => panic!("No RelationDef"),
}
}
} I will fix it! |
This is typical script generated by
sea-orm-cli
without existing relation:When I run
cargo cilppy
, there is a warning:Could someone fix it?
The text was updated successfully, but these errors were encountered: