mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Remove usage of std::intrinsics::discriminant_value.
This commit is contained in:
parent
17a183808e
commit
01442ba1ae
3 changed files with 4 additions and 6 deletions
|
@ -69,7 +69,7 @@ macro_rules! declare_viewport_descriptor_inner {
|
|||
const VIEWPORT_DESCRIPTOR_VARIANTS: usize = $number_of_variants;
|
||||
|
||||
impl ViewportDescriptor {
|
||||
fn discriminant_value(&self) -> usize {
|
||||
pub fn discriminant_value(&self) -> usize {
|
||||
match *self {
|
||||
$(
|
||||
ViewportDescriptor::$assigned_variant(..) => $assigned_discriminant,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue