Merge pull request #118 from itdaniher/master

fix for mozilla/rust/pull/14364
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
Total{Ord,Eq} -> {Ord,Eq}