From 5da6e82b5e1ec6e111300d675cb3d66fb47c729e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 9 Feb 2021 17:20:25 +0200 Subject: [PATCH] gstreamer/datetime: Silence new 1.50 clippy warning --- gstreamer/src/date_time.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/gstreamer/src/date_time.rs b/gstreamer/src/date_time.rs index f8ae2d0ca..4317175fc 100644 --- a/gstreamer/src/date_time.rs +++ b/gstreamer/src/date_time.rs @@ -351,6 +351,7 @@ impl cmp::PartialOrd for DateTime { // are compared in the same TZ. fn partial_cmp(&self, other: &Self) -> Option { #[inline] + #[allow(clippy::unnecessary_wraps)] fn get_cmp(delta: i32) -> Option { skip_assert_initialized!(); Some(delta.cmp(&0))