Skip to content

Commit

Permalink
cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
astoring committed Dec 28, 2023
1 parent 9753cbb commit 03251f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/db-mysql-rbatis/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl_select!(User{select_by_id(id:String) -> Option => "`where id = #{id} limit
#[handler]
pub async fn get_user(req: &mut Request, res: &mut Response) {
let uid = req.query::<i64>("uid").unwrap();
let data = User::select_by_id(&mut RB.clone(), uid.to_string()).await.unwrap();
let data = User::select_by_id(&*RB, uid.to_string()).await.unwrap();
println!("{data:?}");
res.render(serde_json::to_string(&data).unwrap());
}
Expand Down

0 comments on commit 03251f8

Please sign in to comment.