From a216f85abf05709ac156b9c9c9bb89ed483ec672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Laignel?= Date: Fri, 18 Dec 2020 17:43:15 +0100 Subject: [PATCH] ClockTime: use matches! now that MSRV allows it --- gstreamer/src/clock_time.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/gstreamer/src/clock_time.rs b/gstreamer/src/clock_time.rs index a08d8434b..039cefc92 100644 --- a/gstreamer/src/clock_time.rs +++ b/gstreamer/src/clock_time.rs @@ -102,14 +102,8 @@ macro_rules! impl_common_ops_for_opt_int( Self(Some(0)) } - // FIXME `matches!` was introduced in rustc 1.42.0, current MSRV is 1.41.0 - // FIXME uncomment when CI can upgrade to 1.47.1 - //#[allow(clippy::match_like_matches_macro)] pub fn is_zero(&self) -> bool { - match self.0 { - Some(0) => true, - _ => false, - } + matches!(self.0, Some(0)) } pub fn none() -> Self {