Skip to content

Commit 2cb4975

Browse files
committed
Allow dead code for surpasses() method
1 parent f7dccb3 commit 2cb4975

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/calendar/src/calendar_arithmetic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,7 @@ impl<C: DateFieldsResolver> ArithmeticDate<C> {
744744
/// This takes two dates (`self` and `other`), `duration`, and `sign` (either -1 or 1), then
745745
/// returns whether adding the duration to `self` results in a year/month/day that exceeds
746746
/// `other` in the direction indicated by `sign`, constraining the month but not the day.
747+
#[allow(dead_code)] // TODO: remove surpasses() method when no longer needed
747748
pub(crate) fn surpasses(
748749
&self,
749750
other: &Self,

0 commit comments

Comments
 (0)