Skip to content

Commit

Permalink
Incorporate fixes in PR tokio-rs#47
Browse files Browse the repository at this point in the history
  • Loading branch information
bsodmike committed Nov 2, 2024
1 parent 7cf2aa9 commit 1e062a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/hello-toasty-rustqlite/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ async fn main() {
);

// Load the user again
let user = User::find_by_id(&u2.id).get(&db).await.unwrap();
println!(" reloaded -> {user:#?}");
let user = User::find_by_id(&u1.id).get(&db).await.unwrap();
println!(" reloaded, notice change to the user's name -> {user:#?}");

println!(" ~~~~~~~~~~~ CREATE TODOs ~~~~~~~~~~~~");

Expand Down Expand Up @@ -110,6 +110,7 @@ async fn main() {
// let mut todos = db::Todo::find_by_user(&u2.id).all(&db).await.unwrap();

// Delete user
let user = User::find_by_id(&u2.id).get(&db).await.unwrap();
user.delete(&db).await.unwrap();
assert!(User::find_by_id(&u2.id).get(&db).await.is_err());

Expand Down

0 comments on commit 1e062a2

Please sign in to comment.