chore: clippy fixes

This commit is contained in:
Ilya Zlobintsev 2023-06-01 19:02:57 +03:00
parent d98fbf5e94
commit dd6b53f2fe
2 changed files with 4 additions and 4 deletions

View File

@ -44,8 +44,8 @@ impl Header {
//limits the length of gpu names in combobox
for cell in self.gpu_selector.cells() {
cell.set_property("width-chars", &10);
cell.set_property("ellipsize", &EllipsizeMode::End);
cell.set_property("width-chars", 10);
cell.set_property("ellipsize", EllipsizeMode::End);
}
self.gpu_selector.set_active(Some(0));

View File

@ -19,7 +19,7 @@ fn pong_response() {
});
let response = Response::Ok(Pong);
assert_eq!(serde_json::to_value(&response).unwrap(), expected_response);
assert_eq!(serde_json::to_value(response).unwrap(), expected_response);
}
#[test]
@ -41,5 +41,5 @@ fn error_response() {
let response = Response::<()>::Error("my super error".to_owned());
assert_eq!(serde_json::to_value(&response).unwrap(), expected_response);
assert_eq!(serde_json::to_value(response).unwrap(), expected_response);
}