File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ impl Widget {
126
126
} )
127
127
. collect ( ) ;
128
128
129
- tasks. clone ( )
129
+ tasks
130
130
}
131
131
}
132
132
Original file line number Diff line number Diff line change @@ -70,13 +70,13 @@ impl Widget {
70
70
task. note = match task. note {
71
71
todo_txt:: task:: Note :: Long { ref filename, .. } => todo_txt:: task:: Note :: Long {
72
72
filename : filename. to_string ( ) ,
73
- content : new_note. clone ( ) ,
73
+ content : new_note,
74
74
} ,
75
75
_ => {
76
76
if new_note. is_empty ( ) {
77
77
todo_txt:: task:: Note :: None
78
78
} else {
79
- todo_txt:: task:: Note :: Short ( new_note. clone ( ) )
79
+ todo_txt:: task:: Note :: Short ( new_note)
80
80
}
81
81
}
82
82
} ;
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ impl relm::Widget for Calendar {
121
121
122
122
fn model ( relm : & relm:: Relm < Self > , label : String ) -> Model {
123
123
Model {
124
- label : label . clone ( ) ,
124
+ label,
125
125
popover : gtk:: Popover :: new ( None :: < & gtk:: Calendar > ) ,
126
126
calendar : gtk:: Calendar :: new ( ) ,
127
127
relm : relm. clone ( ) ,
You can’t perform that action at this time.
0 commit comments