File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -110,12 +110,17 @@ fn bounds(interval: &Interval) -> (f64, f64) {
110110}
111111
112112// label for activities
113+ // Wrapping with `Option` is unnecessary but this signature
114+ // is expected by `Renderer`
115+ #[ allow( clippy:: unnecessary_wraps) ]
113116fn label ( interval : & Interval , colors : & [ RGB ] ) -> Option < Label > {
114117 let ( activity_id, activity) = interval;
115118 Some ( ( activity. get_title ( ) , color ( * activity_id, colors) ) )
116119}
117120
118121// label for legend
122+ // Wrapping with `Option` is unnecessary but this signature
123+ // is expected by `Renderer`
119124fn legend ( interval : & Interval ) -> Option < Label > {
120125 let ( _activity_id, activity) = interval;
121126 let start_time: DateTime < Local > = activity. get_start_time ( ) . into ( ) ;
You can’t perform that action at this time.
0 commit comments