mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-26 03:21:03 +00:00
gstreamer/datetime: Silence new 1.50 clippy warning
This commit is contained in:
parent
631be6b534
commit
5da6e82b5e
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue