mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-29 04:51:09 +00:00
ClockTime: use matches! now that MSRV allows it
This commit is contained in:
parent
2f0e386037
commit
a216f85abf
1 changed files with 1 additions and 7 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue