fix compile error: rename Eq to PartialEq