Rust update: change Eq to PartialEq