From d669bef623f8dc44c87a4dac33c45acc7eaa6314 Mon Sep 17 00:00:00 2001 From: Bauke Date: Sat, 10 Jun 2023 13:15:33 +0200 Subject: [PATCH] Update SeaORM entities and remove warning exception. --- source/entities/group_data.rs | 4 ++-- source/entities/mod.rs | 2 +- source/entities/prelude.rs | 2 +- source/entities/snapshot.rs | 4 ++-- source/main.rs | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/source/entities/group_data.rs b/source/entities/group_data.rs index 167d2c2..851b73d 100644 --- a/source/entities/group_data.rs +++ b/source/entities/group_data.rs @@ -1,8 +1,8 @@ -//! SeaORM Entity. Generated by sea-orm-codegen 0.9.3 +//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 use sea_orm::entity::prelude::*; -#[derive(Clone, Debug, PartialEq, DeriveEntityModel)] +#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)] #[sea_orm(table_name = "group_data")] pub struct Model { #[sea_orm(primary_key)] diff --git a/source/entities/mod.rs b/source/entities/mod.rs index 5c448b9..6423885 100644 --- a/source/entities/mod.rs +++ b/source/entities/mod.rs @@ -1,4 +1,4 @@ -//! SeaORM Entity. Generated by sea-orm-codegen 0.9.3 +//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 pub mod prelude; diff --git a/source/entities/prelude.rs b/source/entities/prelude.rs index 72a4745..05ce0c6 100644 --- a/source/entities/prelude.rs +++ b/source/entities/prelude.rs @@ -1,4 +1,4 @@ -//! SeaORM Entity. Generated by sea-orm-codegen 0.9.3 +//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 pub use super::group_data::Entity as GroupData; pub use super::snapshot::Entity as Snapshot; diff --git a/source/entities/snapshot.rs b/source/entities/snapshot.rs index d3ae750..9b58057 100644 --- a/source/entities/snapshot.rs +++ b/source/entities/snapshot.rs @@ -1,8 +1,8 @@ -//! SeaORM Entity. Generated by sea-orm-codegen 0.9.3 +//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3 use sea_orm::entity::prelude::*; -#[derive(Clone, Debug, PartialEq, DeriveEntityModel)] +#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)] #[sea_orm(table_name = "snapshot")] pub struct Model { #[sea_orm(primary_key)] diff --git a/source/main.rs b/source/main.rs index f1af00f..4eb3d28 100644 --- a/source/main.rs +++ b/source/main.rs @@ -27,7 +27,7 @@ pub mod utilities; /// ``` /// sea-orm-cli generate entity -o source/entities /// ``` -#[allow(missing_docs, clippy::derive_partial_eq_without_eq)] +#[allow(missing_docs)] pub mod entities; /// The main function.