diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2021-09-08 15:33:31 +0300 |
---|---|---|
committer | Sebastian Dröge <slomo@coaxion.net> | 2021-09-08 15:35:41 +0300 |
commit | 96d86eaa069165f42abe6a0907c99016cab5db52 (patch) | |
tree | 17a116d8cb8dac35fb85d2f4d6a92ed675c0e084 /text/json | |
parent | 626df039615f38535fed9d6f1f7c53ddeb4f40f0 (diff) |
Clean up clippy warnings and CI configuration
Put clippy overrides into the sources files instead of the CI
configuration, and fix various warnings / clean up code.
Diffstat (limited to 'text/json')
-rw-r--r-- | text/json/tests/json.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/text/json/tests/json.rs b/text/json/tests/json.rs index bbe35fb5..f628e38d 100644 --- a/text/json/tests/json.rs +++ b/text/json/tests/json.rs @@ -15,7 +15,7 @@ // Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Boston, MA 02110-1335, USA. -use gst::EventView; +#![allow(clippy::single_match)] fn init() { use std::sync::Once; @@ -83,6 +83,8 @@ fn test_parse() { } while h.events_in_queue() > 0 { + use gst::EventView; + let ev = h.pull_event().unwrap(); match ev.view() { |