forked from mirrors/gstreamer-rs
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))
|
||||
}
|
||||
|
||||
|
@ -106,7 +106,7 @@ macro_rules! impl_common_ops_for_opt_int(
|
|||
matches!(self.0, Some(0))
|
||||
}
|
||||
|
||||
pub fn none() -> Self {
|
||||
pub const fn none() -> Self {
|
||||
Self(None)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue