From c68df282e82e6b4c1b4578a78f08672e1ebf51c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 21 Jun 2020 18:27:39 +0300 Subject: [PATCH] gstreamer/caps: Fix clippy warning No need to provide the field name if it's initialized with a variable of the same name. --- gstreamer/src/caps.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gstreamer/src/caps.rs b/gstreamer/src/caps.rs index 61ce5b3ef..2b25f53aa 100644 --- a/gstreamer/src/caps.rs +++ b/gstreamer/src/caps.rs @@ -441,9 +441,9 @@ macro_rules! define_iter( let n_structures = caps.get_size(); $name { - caps: caps, + caps, idx: 0, - n_structures: n_structures, + n_structures, } } }