Skip to content

Commit 99035d9

Browse files
committed
Fix clippy warning for casting to the same type is unnecessary.
1 parent 35b2bdb commit 99035d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mp4parse/src/unstable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ impl<'a> Iterator for TimeOffsetIterator<'a> {
328328
impl<'a> TimeOffsetIterator<'a> {
329329
fn next_offset_time(&mut self) -> TrackScaledTime<i64> {
330330
match self.next() {
331-
Some(v) => TrackScaledTime::<i64>(v as i64, self.track_id),
331+
Some(v) => TrackScaledTime::<i64>(v, self.track_id),
332332
_ => TrackScaledTime::<i64>(0, self.track_id),
333333
}
334334
}

mp4parse_capi/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,7 @@ pub unsafe extern "C" fn mp4parse_get_fragment_info(
13901390

13911391
if let (Some(time), Some(scale)) = (duration, context.timescale) {
13921392
info.fragment_duration = match media_time_to_us(time, scale) {
1393-
Some(time_us) => time_us.0 as u64,
1393+
Some(time_us) => time_us.0,
13941394
None => return Mp4parseStatus::Invalid,
13951395
}
13961396
}

0 commit comments

Comments
 (0)