Silence remaining warnings
This commit is contained in:
parent
22eec53c5a
commit
abf4d5a502
2 changed files with 2 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue