chore: elide lifetimes
This commit is contained in:
parent
1c68f67c3f
commit
30fe1bc609
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user