You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above could be simplified by making type of fractional_seconds as Mantissa when creating the Timestamp. We can put a default value for fractional_seconds which could either be Mantissa::Digits(0) or Mantissa::Decimal(Decimal::new(0,0)).
Current implementation of
Timestamp
hasfractional_seconds
type asOption<Mantissa>
.https://github.com/amzn/ion-rust/blob/944511591310f7e273074eaa252f6cd37b5728bb/src/types/timestamp.rs#L126-L131
The above could be simplified by making type of
fractional_seconds
asMantissa
when creating theTimestamp
. We can put a default value forfractional_seconds
which could either beMantissa::Digits(0)
orMantissa::Decimal(Decimal::new(0,0))
.Reference PR: #410
The text was updated successfully, but these errors were encountered: