diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 408c1317..5993f69d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -190,7 +190,7 @@ clippy: rules: - when: 'always' script: - - cargo clippy --locked --color=always --all --all-features --all-targets -- -A clippy::redundant_pattern_matching -A clippy::single_match -A clippy::cast_lossless -A clippy::manual_range_contains -D warnings + - cargo clippy --locked --color=always --all --all-features --all-targets -- -A clippy::single_match -A clippy::cast_lossless -A clippy::manual_range_contains -D warnings deny: extends: .img-stable diff --git a/generic/sodium/src/decrypter/imp.rs b/generic/sodium/src/decrypter/imp.rs index 55c66119..d1b73aab 100644 --- a/generic/sodium/src/decrypter/imp.rs +++ b/generic/sodium/src/decrypter/imp.rs @@ -213,13 +213,18 @@ impl State { let res = if let Some(buffer) = buffer { let mut map = match buffer.map_writable() { Ok(map) => map, - Err(_) => { - gst_error!(CAT, obj: pad, "Failed to map provided buffer writable"); + Err(e) => { + gst_error!( + CAT, + obj: pad, + "Failed to map provided buffer writable: {}", + e + ); return Err(gst::FlowError::Error); } }; - if let Err(_) = self.adapter.copy(0, &mut map[..available_size]) { - gst_error!(CAT, obj: pad, "Failed to copy into provided buffer"); + if let Err(e) = self.adapter.copy(0, &mut map[..available_size]) { + gst_error!(CAT, obj: pad, "Failed to copy into provided buffer: {}", e); return Err(gst::FlowError::Error); } if map.len() != available_size {