diff --git a/src/agenda.rs b/src/agenda.rs index 036d6cd..5b2c906 100644 --- a/src/agenda.rs +++ b/src/agenda.rs @@ -126,7 +126,7 @@ impl Widget { }) .collect(); - tasks.clone() + tasks } } diff --git a/src/edit.rs b/src/edit.rs index 48db0d8..714d53c 100644 --- a/src/edit.rs +++ b/src/edit.rs @@ -70,13 +70,13 @@ impl Widget { task.note = match task.note { todo_txt::task::Note::Long { ref filename, .. } => todo_txt::task::Note::Long { filename: filename.to_string(), - content: new_note.clone(), + content: new_note, }, _ => { if new_note.is_empty() { todo_txt::task::Note::None } else { - todo_txt::task::Note::Short(new_note.clone()) + todo_txt::task::Note::Short(new_note) } } }; diff --git a/src/widgets/calendar.rs b/src/widgets/calendar.rs index cb5285e..d8157ca 100644 --- a/src/widgets/calendar.rs +++ b/src/widgets/calendar.rs @@ -121,7 +121,7 @@ impl relm::Widget for Calendar { fn model(relm: &relm::Relm, label: String) -> Model { Model { - label: label.clone(), + label, popover: gtk::Popover::new(None::<>k::Calendar>), calendar: gtk::Calendar::new(), relm: relm.clone(),