Silence remaining warnings

This commit is contained in:
Joscha 2024-11-21 02:14:35 +01:00
parent 22eec53c5a
commit abf4d5a502
2 changed files with 2 additions and 0 deletions

View file

@ -61,6 +61,7 @@ impl Entry {
/// Mode that determines how entries are filtered when they are added to
/// an [`Entries`].
#[allow(dead_code)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum EntryMode {
/// The entry's root date must be contained in the range.

View file

@ -37,6 +37,7 @@ impl DateRange {
/// Return a new range with its [`Self::until`] set to a new value.
///
/// Returns [`None`] if the new value is earlier than [`Self::from`].
#[allow(dead_code)]
pub fn with_until(&self, until: NaiveDate) -> Option<Self> {
if self.from <= until {
Some(Self::new(self.from, until))