diff --git a/components/plurals/src/rules/runtime/ast.rs b/components/plurals/src/rules/runtime/ast.rs index a663c581c79..2ebc4169777 100644 --- a/components/plurals/src/rules/runtime/ast.rs +++ b/components/plurals/src/rules/runtime/ast.rs @@ -456,7 +456,7 @@ mod serde { let string: String = self.to_string(); serializer.serialize_str(&string) } else { - serializer.serialize_bytes(self.0.as_encoded_bytes()) + serializer.serialize_bytes(self.0.as_bytes()) } } } @@ -634,7 +634,7 @@ mod test { let relations = alloc::vec![relation]; let vzv = VarZeroVec::from(relations.as_slice()); assert_eq!( - vzv.as_encoded_bytes(), + vzv.as_bytes(), &[1, 0, 0, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] ); }