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.
fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> {
#[inline]
#[allow(clippy::unnecessary_wraps)]
fn get_cmp(delta: i32) -> Option<cmp::Ordering> {
skip_assert_initialized!();
Some(delta.cmp(&0))