diff --git a/src/app.rs b/src/app.rs index c6cfebb..66bb691 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1732,8 +1732,8 @@ impl ProfApp { return; } - let duration: i64 = percent.apply_to(cx.view_interval.duration_ns()); - let sign: i64 = match dir { + let duration = percent.apply_to(cx.view_interval.duration_ns()); + let sign = match dir { PanDirection::Left => -1, PanDirection::Right => 1, }; diff --git a/src/timestamp.rs b/src/timestamp.rs index c492d54..8b4b09c 100644 --- a/src/timestamp.rs +++ b/src/timestamp.rs @@ -325,10 +325,10 @@ mod tests { #[test] fn test_translate_positive() { - let start: Timestamp = Timestamp::parse("234.5 ms").unwrap(); - let end: Timestamp = Timestamp::parse("235.5 ms").unwrap(); - let expected_start: Timestamp = Timestamp(start.0 + 250); - let expected_end: Timestamp = Timestamp(end.0 + 250); + let start = Timestamp::parse("234.5 ms").unwrap(); + let end = Timestamp::parse("235.5 ms").unwrap(); + let expected_start = Timestamp(start.0 + 250); + let expected_end = Timestamp(end.0 + 250); assert_eq!( Interval::new(start, end).translate(250), Interval::new(expected_start, expected_end) @@ -337,10 +337,10 @@ mod tests { #[test] fn test_translate_negative() { - let start: Timestamp = Timestamp::parse("234.5 ms").unwrap(); - let end: Timestamp = Timestamp::parse("235.5 ms").unwrap(); - let expected_start: Timestamp = Timestamp(start.0 - 250); - let expected_end: Timestamp = Timestamp(end.0 - 250); + let start = Timestamp::parse("234.5 ms").unwrap(); + let end = Timestamp::parse("235.5 ms").unwrap(); + let expected_start = Timestamp(start.0 - 250); + let expected_end = Timestamp(end.0 - 250); assert_eq!( Interval::new(start, end).translate(-250), Interval::new(expected_start, expected_end)