Fix wrong_self_convention lint
This change fixes the wrong_self_convention lint introduced with the
Rust 1.53.0 release. The lint warns of non-conventional relationships
between naming and how self is taken.
See
for more details.
@@ -134,7 +134,7 @@ impl std::str::FromStr for TimeUnit {
}
impl TimeUnit {
- fn to_sec(&self) -> u64 {
+ fn to_sec(self) -> u64 {
use TimeUnit::*;
match self {
Hour => 60 * 60,
