fix test-serde beta clippy warning

This commit is contained in:
David Hewitt 2023-11-26 10:26:21 +00:00
parent 41842f9e4b
commit cf67c2ce46

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