From ca205543a37ba734a90fed8f23daf1cf0e45ce0d Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Thu, 12 Jan 2023 17:28:39 +0800 Subject: [PATCH] CHANGELOG --- CHANGELOG.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 767686f7..5380bfe9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -64,12 +64,12 @@ fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result fn try_get_by(res: &QueryResult, index: I) -> Result; ``` * The `ActiveModelBehaviour` trait becomes async trait https://github.com/SeaQL/sea-orm/pull/1328 -For anyone who implement the `ActiveModelBehaviour` with default implementation (no*op). No code changes is required. -```rs +```rust +// For anyone who implement the `ActiveModelBehaviour` with default implementation (no*op). +// No code changes is required. impl ActiveModelBehavior for ActiveModel {} -``` -If you overridden the default implementation: -```rs + +// However, if you overridden the default implementation: #[async_trait::async_trait] impl ActiveModelBehavior for ActiveModel { async fn before_save(self, db: &C, insert: bool) -> Result