diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2023-02-17 18:23:38 +0100 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2023-02-17 18:23:38 +0100 |
commit | 405cec9eed5d7f58440ec8495f5cbc1f5c6fee40 (patch) | |
tree | a115c0efc0cf1d50e54590dcb1663fec4a9751c4 /nihav-codec-support/src/test/enc_video.rs | |
parent | f638a5b1b3241b3433689983aca22d9e6518a64f (diff) | |
download | nihav-405cec9eed5d7f58440ec8495f5cbc1f5c6fee40.tar.gz |
rename "str" variable to avoid confusion with the primitive type
Diffstat (limited to 'nihav-codec-support/src/test/enc_video.rs')
-rw-r--r-- | nihav-codec-support/src/test/enc_video.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nihav-codec-support/src/test/enc_video.rs b/nihav-codec-support/src/test/enc_video.rs index 16ea415..900a040 100644 --- a/nihav-codec-support/src/test/enc_video.rs +++ b/nihav-codec-support/src/test/enc_video.rs @@ -217,7 +217,7 @@ pub fn test_encoding_to_file(dec_config: &DecoderTestParams, enc_config: &Encode let mut br = ByteReader::new(&mut fr); let mut dmx = create_demuxer(dmx_f, &mut br).unwrap(); - let in_stream = dmx.get_streams().find(|str| str.get_media_type() == dec_config.stream_type).unwrap(); + let in_stream = dmx.get_streams().find(|strm| strm.get_media_type() == dec_config.stream_type).unwrap(); let in_stream_id = in_stream.id; let decfunc = dec_config.dec_reg.find_decoder(in_stream.get_info().get_name()).unwrap(); let mut dec = (decfunc)(); @@ -326,7 +326,7 @@ pub fn test_encoding_md5(dec_config: &DecoderTestParams, enc_config: &EncoderTes let mut br = ByteReader::new(&mut fr); let mut dmx = create_demuxer(dmx_f, &mut br).unwrap(); - let in_stream = dmx.get_streams().find(|str| str.get_media_type() == dec_config.stream_type).unwrap(); + let in_stream = dmx.get_streams().find(|strm| strm.get_media_type() == dec_config.stream_type).unwrap(); let in_stream_id = in_stream.id; let decfunc = dec_config.dec_reg.find_decoder(in_stream.get_info().get_name()).unwrap(); let mut dec = (decfunc)(); |