From a148a44e5b97df43378c3b5ed6e6858620ea1490 Mon Sep 17 00:00:00 2001 From: Fangdun Tsai Date: Fri, 8 Mar 2024 17:32:24 +0800 Subject: [PATCH] chore: clippy --- examples/databases/sea-orm/src/entities/todo.rs | 6 +----- examples/databases/sea-orm/src/lib.rs | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/examples/databases/sea-orm/src/entities/todo.rs b/examples/databases/sea-orm/src/entities/todo.rs index 80a531d2..6aa5c81f 100644 --- a/examples/databases/sea-orm/src/entities/todo.rs +++ b/examples/databases/sea-orm/src/entities/todo.rs @@ -3,20 +3,16 @@ use sea_orm::entity::prelude::*; use serde::{Deserialize, Serialize}; -/// #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel, Deserialize, Serialize)] #[sea_orm(table_name = "todos")] pub struct Model { - /// #[sea_orm(primary_key)] #[serde[skip_deserializing]] pub id: i32, - /// pub text: String, - /// pub completed: bool, } -/// + #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation {} diff --git a/examples/databases/sea-orm/src/lib.rs b/examples/databases/sea-orm/src/lib.rs index d0254bce..d40d5b4a 100644 --- a/examples/databases/sea-orm/src/lib.rs +++ b/examples/databases/sea-orm/src/lib.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] #![deny(warnings)] //! `SeaOrm` example for Viz framework.