chore: elide lifetimes

This commit is contained in:
kjuulh 2025-03-25 20:53:28 +01:00
parent 1c68f67c3f
commit 30fe1bc609

View File

@ -137,11 +137,11 @@ struct TimeTable {
} }
impl TimeTable { impl TimeTable {
pub fn get_day<'a>( pub fn get_day(
&'a mut self, &mut self,
project: Option<String>, project: Option<String>,
now: chrono::DateTime<chrono::Utc>, now: chrono::DateTime<chrono::Utc>,
) -> Option<&'a mut Day> { ) -> Option<&mut Day> {
let item = self.days.iter_mut().find(|d| { let item = self.days.iter_mut().find(|d| {
if d.project == project { if d.project == project {
return false; return false;