gstreamer/datetime: Silence new 1.50 clippy warning

This commit is contained in:
Sebastian Dröge 2021-02-09 17:20:25 +02:00
parent 631be6b534
commit 5da6e82b5e

View file

@ -351,6 +351,7 @@ impl cmp::PartialOrd for DateTime {
// are compared in the same TZ. // are compared in the same TZ.
fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> { fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> {
#[inline] #[inline]
#[allow(clippy::unnecessary_wraps)]
fn get_cmp(delta: i32) -> Option<cmp::Ordering> { fn get_cmp(delta: i32) -> Option<cmp::Ordering> {
skip_assert_initialized!(); skip_assert_initialized!();
Some(delta.cmp(&0)) Some(delta.cmp(&0))