Skip to content

Commit 7a7b871

Browse files
committed
Removes redundant clone
1 parent d78e568 commit 7a7b871

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/agenda.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ impl Widget {
126126
})
127127
.collect();
128128

129-
tasks.clone()
129+
tasks
130130
}
131131
}
132132

src/edit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ impl Widget {
7070
task.note = match task.note {
7171
todo_txt::task::Note::Long { ref filename, .. } => todo_txt::task::Note::Long {
7272
filename: filename.to_string(),
73-
content: new_note.clone(),
73+
content: new_note,
7474
},
7575
_ => {
7676
if new_note.is_empty() {
7777
todo_txt::task::Note::None
7878
} else {
79-
todo_txt::task::Note::Short(new_note.clone())
79+
todo_txt::task::Note::Short(new_note)
8080
}
8181
}
8282
};

src/widgets/calendar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl relm::Widget for Calendar {
121121

122122
fn model(relm: &relm::Relm<Self>, label: String) -> Model {
123123
Model {
124-
label: label.clone(),
124+
label,
125125
popover: gtk::Popover::new(None::<&gtk::Calendar>),
126126
calendar: gtk::Calendar::new(),
127127
relm: relm.clone(),

0 commit comments

Comments
 (0)