From 989845f4221abccec1a6ca98f15ca2d92cccedde Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Sun, 6 Jun 2021 18:13:53 +0800 Subject: [PATCH] Tweaks --- README.md | 2 +- examples/sqlx-mysql/src/operation.rs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 068a3c58..f1bfa3f9 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Inspired by ActiveRecord, Eloquent and TypeORM, SeaORM aims to provide you an intuitive and ergonomic API to make working with databases in Rust a first-class experience. -> This is an early WIP of SeaORM, and is not yet published. See [example](examples/sqlx-mysql/src/main.rs) for demo usage. +> This is an early WIP of SeaORM, and is not yet published. See [example](examples/sqlx-mysql/src) for demo usage. ## Features diff --git a/examples/sqlx-mysql/src/operation.rs b/examples/sqlx-mysql/src/operation.rs index c4dd160e..05031513 100644 --- a/examples/sqlx-mysql/src/operation.rs +++ b/examples/sqlx-mysql/src/operation.rs @@ -25,7 +25,10 @@ pub async fn insert_and_update(db: &Database) -> Result<(), ExecErr> { println!(); println!("Inserted: {:?}\n", res); - let pear = fruit::Entity::find_by(res.last_insert_id).one(db).await.map_err(|_| ExecErr)?; + let pear = fruit::Entity::find_by(res.last_insert_id) + .one(db) + .await + .map_err(|_| ExecErr)?; println!(); println!("Pear: {:?}\n", pear);