mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-29 13:01:05 +00:00
ClockTime: const for zero & none constructors
This commit is contained in:
parent
a216f85abf
commit
87446d4d8e
1 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ macro_rules! impl_common_ops_for_opt_int(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn zero() -> Self {
|
pub const fn zero() -> Self {
|
||||||
Self(Some(0))
|
Self(Some(0))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ macro_rules! impl_common_ops_for_opt_int(
|
||||||
matches!(self.0, Some(0))
|
matches!(self.0, Some(0))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn none() -> Self {
|
pub const fn none() -> Self {
|
||||||
Self(None)
|
Self(None)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue