Skip to content

Commit

Permalink
use TinyAsciiStr
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonwilliams committed Nov 11, 2024
1 parent cc1f732 commit e83fb12
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/engine/src/builtins/temporal/plain_date/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ use temporal_rs::{
options::ArithmeticOverflow, partial::PartialDate, Calendar, PlainDate as InnerDate,
TinyAsciiStr,
};
use tinystr::TinyStr4;

use super::{
calendar::{get_temporal_calendar_slot_value_with_default, to_temporal_calendar_slot_value},
Expand Down Expand Up @@ -961,7 +960,7 @@ pub(crate) fn to_partial_date_record(
.with_message("The monthCode field value must be a string.")
.into());
};
TinyStr4::from_str(&month_code.to_std_string_escaped())
TinyAsciiStr::<4>::from_str(&month_code.to_std_string_escaped())
.map_err(|e| JsError::from(JsNativeError::typ().with_message(e.to_string())))
})
.transpose()?;
Expand Down

0 comments on commit e83fb12

Please sign in to comment.