Skip to content

Commit

Permalink
fix test-serde beta clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Nov 28, 2023
1 parent 41842f9 commit cf67c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ mod test_serde {
assert_eq!(user.username, "danya");
assert!(user.group.is_none());
assert_eq!(user.friends.len(), 1usize);
let friend = user.friends.get(0).unwrap();
let friend = user.friends.first().unwrap();

Python::with_gil(|py| {
assert_eq!(friend.borrow(py).username, "friend");
Expand Down

0 comments on commit cf67c2c

Please sign in to comment.