mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 17:41:05 +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.
|
// 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))
|
||||||
|
|
Loading…
Reference in a new issue