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());