From 9c5abe5892ed309d66cfaa9b9eebb213fe44777c Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Sun, 26 Dec 2021 00:37:33 +0800 Subject: [PATCH] Update Readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9f6e635d2..a182bb0b8 100644 --- a/README.md +++ b/README.md @@ -142,7 +142,7 @@ let banana = fruit::ActiveModel { }; // create, because primary key `id` is `NotSet` -let mut banana = banana.save(db).await?.into_active_model(); +let mut banana = banana.save(db).await?; banana.name = Set("Banana Mongo".to_owned());