1
Fork 0

No need for a zst constructor method when we can have a constant

This commit is contained in:
oli 2020-11-01 17:01:34 +00:00
parent 3ef9dfdd42
commit b8751c1fbb
2 changed files with 1 additions and 6 deletions

View file

@ -180,7 +180,7 @@ impl<'tcx, Tag> Scalar<Tag> {
#[inline]
pub fn zst() -> Self {
Scalar::Int(ScalarInt::zst())
Scalar::Int(ScalarInt::ZST)
}
#[inline(always)]

View file

@ -183,11 +183,6 @@ impl ScalarInt {
);
}
#[inline]
pub fn zst() -> Self {
Self::null(Size::ZERO)
}
#[inline]
pub fn null(size: Size) -> Self {
Self { data: 0, size: size.bytes() as u8 }