fix warnings: deprecated to_owned, non_snake_case_functions
update for rust: Eq renames to PartialEq
Merge pull request #119 from andelf/fix-warnings

fix warnings: deprecated to_owned, non_snake_case_functions