Skip to content

Commit bbea6e0

Browse files
Update FFI for new parameters in year_month and month_day
1 parent 4ca98f2 commit bbea6e0

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

temporal_capi/src/plain_month_day.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ pub mod ffi {
8484
let _ = write.write_str(code.as_str());
8585
}
8686

87-
pub fn to_plain_date(&self) -> Result<Box<PlainDate>, TemporalError> {
87+
pub fn to_plain_date(&self, year: Option<i32>) -> Result<Box<PlainDate>, TemporalError> {
8888
self.0
89-
.to_plain_date()
89+
.to_plain_date(year)
9090
.map(|x| Box::new(PlainDate(x)))
9191
.map_err(Into::into)
9292
}

temporal_capi/src/plain_year_month.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ pub mod ffi {
160160
.map(|x| Box::new(Duration(x)))
161161
.map_err(Into::into)
162162
}
163-
pub fn to_plain_date(&self) -> Result<Box<PlainDate>, TemporalError> {
163+
pub fn to_plain_date(&self, day: Option<u8>) -> Result<Box<PlainDate>, TemporalError> {
164164
self.0
165-
.to_plain_date()
165+
.to_plain_date(day)
166166
.map(|x| Box::new(PlainDate(x)))
167167
.map_err(Into::into)
168168
}

0 commit comments

Comments
 (0)