Skip to content

Commit 08fc7bd

Browse files
committed
Allow dead code for surpasses() method
1 parent e5e08cc commit 08fc7bd

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
@@ -733,6 +733,7 @@ impl<C: DateFieldsResolver> ArithmeticDate<C> {
733733
/// This takes two dates (`self` and `other`), `duration`, and `sign` (either -1 or 1), then
734734
/// returns whether adding the duration to `self` results in a year/month/day that exceeds
735735
/// `other` in the direction indicated by `sign`, constraining the month but not the day.
736+
#[allow(dead_code)] // TODO: remove surpasses() method when no longer needed
736737
pub(crate) fn surpasses(
737738
&self,
738739
other: &Self,

0 commit comments

Comments
 (0)