Skip to content

Commit 3433fe3

Browse files
author
Adrian
committed
Fix clippy warnings
1 parent 2809c83 commit 3433fe3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mp4parse/src/unstable.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ pub struct Microseconds<T>(pub T);
497497
/// using provided `MediaTimeScale`
498498
pub fn media_time_to_us(time: MediaScaledTime, scale: MediaTimeScale) -> Option<Microseconds<u64>> {
499499
let microseconds_per_second = 1_000_000;
500-
rational_scale::<u64, u64>(time.0, scale.0, microseconds_per_second).map(|v| Microseconds(v))
500+
rational_scale::<u64, u64>(time.0, scale.0, microseconds_per_second).map(Microseconds)
501501
}
502502

503503
/// Convert `time` in track's local (mdhd) timescale to microseconds,
@@ -511,7 +511,7 @@ where
511511
{
512512
assert_eq!(time.1, scale.1);
513513
let microseconds_per_second = 1_000_000;
514-
rational_scale::<T, u64>(time.0, scale.0, microseconds_per_second).map(|v| Microseconds(v))
514+
rational_scale::<T, u64>(time.0, scale.0, microseconds_per_second).map(Microseconds)
515515
}
516516

517517
#[test]

0 commit comments

Comments
 (0)