Skip to content

fix(deps): bump serde from 1.0.215 to 1.0.216 #962

fix(deps): bump serde from 1.0.215 to 1.0.216

fix(deps): bump serde from 1.0.215 to 1.0.216 #962

Triggered via pull request December 11, 2024 16:38
Status Skipped
Total duration 4s
Artifacts

benchmark.yml

on: pull_request
Run criterion benchmark
0s
Run criterion benchmark
Fit to window
Zoom out
Zoom in

Annotations

2 warnings
unneeded `return` statement: src/annotations.rs#L161
warning: unneeded `return` statement --> src/annotations.rs:161:5 | 161 | / return match obj.annotations().get(annotation.value(id).as_str()) { 162 | | Some(value) => AnnotationResult { 163 | | value: value.to_string(), 164 | | default: false, ... | 169 | | }, 170 | | }; | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 161 ~ match obj.annotations().get(annotation.value(id).as_str()) { 162 + Some(value) => AnnotationResult { 163 + value: value.to_string(), 164 + default: false, 165 + }, 166 + None => AnnotationResult { 167 + value: annotation.default().unwrap_or("".to_string()), 168 + default: true, 169 + }, 170 ~ } |
unneeded `return` statement: src/annotations.rs#L126
warning: unneeded `return` statement --> src/annotations.rs:126:5 | 126 | / return match obj.annotations().get(&length_v1) { 127 | | Some(value) => { 128 | | let length = value.parse::<i32>().unwrap() as usize; 129 | | match length > 0 && length <= 100 { ... | 152 | | }, 153 | | }; | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return = note: `#[warn(clippy::needless_return)]` on by default help: remove `return` | 126 ~ match obj.annotations().get(&length_v1) { 127 + Some(value) => { 128 + let length = value.parse::<i32>().unwrap() as usize; 129 + match length > 0 && length <= 100 { 130 + true => AnnotationResult { 131 + value: length, 132 + default: false, 133 + }, 134 + false => { 135 + error!("Invalid length! Please set a length > 0 and <= 100. Proceeding with default length."); 136 + match V1Annotation::Length.default() { 137 + Some(default) => AnnotationResult { 138 + value: default.parse::<i32>().unwrap() as usize, 139 + default: true, 140 + }, 141 + None => panic!("No default set for length! Panic!"), 142 + } 143 + } 144 + } 145 + } 146 + None => match V1Annotation::Length.default() { 147 + Some(default) => AnnotationResult { 148 + value: default.parse::<i32>().unwrap() as usize, 149 + default: true, 150 + }, 151 + None => panic!("No default set for length! Panic!"), 152 + }, 153 ~ } |