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