No need for a zst
constructor method when we can have a constant
This commit is contained in:
parent
3ef9dfdd42
commit
b8751c1fbb
2 changed files with 1 additions and 6 deletions
|
@ -180,7 +180,7 @@ impl<'tcx, Tag> Scalar<Tag> {
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn zst() -> Self {
|
pub fn zst() -> Self {
|
||||||
Scalar::Int(ScalarInt::zst())
|
Scalar::Int(ScalarInt::ZST)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
|
|
|
@ -183,11 +183,6 @@ impl ScalarInt {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
|
||||||
pub fn zst() -> Self {
|
|
||||||
Self::null(Size::ZERO)
|
|
||||||
}
|
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn null(size: Size) -> Self {
|
pub fn null(size: Size) -> Self {
|
||||||
Self { data: 0, size: size.bytes() as u8 }
|
Self { data: 0, size: size.bytes() as u8 }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue