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 {
pub fn get_day<'a>(
&'a mut self,
pub fn get_day(
&mut self,
project: Option<String>,
now: chrono::DateTime<chrono::Utc>,
) -> Option<&'a mut Day> {
) -> Option<&mut Day> {
let item = self.days.iter_mut().find(|d| {
if d.project == project {
return false;