Skip to content

Commit 2748dd0

Browse files
committed
Fix
1 parent bff7423 commit 2748dd0

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/value.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ pub enum Value {
327327
pub const VALUE_SIZE: usize = check_value_size();
328328

329329
const fn check_value_size() -> usize {
330-
if std::mem::size_of::<Value>() > 128 {
331-
panic!("the size of Value shouldn't be greater than 32 bytes")
330+
if std::mem::size_of::<Value>() > 104 {
331+
panic!("the size of Value shouldn't be greater than 104 bytes")
332332
}
333333
std::mem::size_of::<Value>()
334334
}
@@ -557,19 +557,17 @@ impl Value {
557557
#[cfg(feature = "with-jiff")]
558558
#[cfg_attr(docsrs, doc(cfg(feature = "with-jiff")))]
559559
Self::JiffDateTime(_) => {
560-
Self::JiffDateTime(Some(jiff::civil::date(1970, 1, 1).at(0, 0, 0, 0).into()))
560+
Self::JiffDateTime(Some(jiff::civil::date(1970, 1, 1).at(0, 0, 0, 0)))
561561
}
562562

563563
#[cfg(feature = "with-jiff")]
564564
#[cfg_attr(docsrs, doc(cfg(feature = "with-jiff")))]
565-
Self::JiffTimestamp(_) => Self::JiffTimestamp(Some(Timestamp::UNIX_EPOCH.into())),
565+
Self::JiffTimestamp(_) => Self::JiffTimestamp(Some(Timestamp::UNIX_EPOCH)),
566566

567567
#[cfg(feature = "with-jiff")]
568568
#[cfg_attr(docsrs, doc(cfg(feature = "with-jiff")))]
569569
Self::JiffZoned(_) => Self::JiffZoned(Some(
570-
Timestamp::UNIX_EPOCH
571-
.to_zoned(jiff::tz::TimeZone::UTC)
572-
.into(),
570+
Timestamp::UNIX_EPOCH.to_zoned(jiff::tz::TimeZone::UTC),
573571
)),
574572

575573
#[cfg(feature = "with-uuid")]

0 commit comments

Comments
 (0)