Fix clippy::unnecessary_lazy_evaluations

This commit is contained in:
Zhiming Wang 2020-10-11 10:11:38 +08:00
parent b0722df007
commit 69bbfb6dc8
No known key found for this signature in database
GPG Key ID: 5B58F95EC95965D8

View File

@ -15,7 +15,7 @@ fn main() -> Result<(), ffmpeg::Error> {
let input = ictx let input = ictx
.streams() .streams()
.best(Type::Video) .best(Type::Video)
.ok_or_else(|| ffmpeg::Error::StreamNotFound)?; .ok_or(ffmpeg::Error::StreamNotFound)?;
let video_stream_index = input.index(); let video_stream_index = input.index();
let mut decoder = input.codec().decoder().video()?; let mut decoder = input.codec().decoder().video()?;