mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2025-02-25 18:55:26 -06:00
chore: clippy fixes
This commit is contained in:
parent
d98fbf5e94
commit
dd6b53f2fe
@ -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));
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user