fix test-serde beta clippy warning

This commit is contained in:
David Hewitt 2023-11-26 10:26:21 +00:00
parent 413dda09f5
commit 856b859efe
1 changed files with 1 additions and 1 deletions

View File

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