Skip to content

Commit

Permalink
update others
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Dec 19, 2021
1 parent 63d48c4 commit 9ea1878
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/plurals/src/rules/runtime/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ mod serde {
let string: String = self.to_string();
serializer.serialize_str(&string)
} else {
serializer.serialize_bytes(self.0.get_encoded_slice())
serializer.serialize_bytes(self.0.as_bytes())
}
}
}
Expand Down Expand Up @@ -634,7 +634,7 @@ mod test {
let relations = alloc::vec![relation];
let vzv = VarZeroVec::from(relations.as_slice());
assert_eq!(
vzv.get_encoded_slice(),
vzv.as_bytes(),
&[1, 0, 0, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0]
);
}
Expand Down

0 comments on commit 9ea1878

Please sign in to comment.