chore: fix clippy lints
This commit is contained in:
parent
abb0d810de
commit
6fd5fdece0
@ -25,7 +25,6 @@ impl TerminadoMessage {
|
|||||||
pub fn from_json(json: &str) -> Result<Self, ()> {
|
pub fn from_json(json: &str) -> Result<Self, ()> {
|
||||||
let value: serde_json::Value = serde_json::from_str(json).map_err(|_| {
|
let value: serde_json::Value = serde_json::from_str(json).map_err(|_| {
|
||||||
error!("Invalid Terminado message: Invalid JSON");
|
error!("Invalid Terminado message: Invalid JSON");
|
||||||
()
|
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
let list: &Vec<serde_json::Value> = value.as_array().ok_or_else(|| {
|
let list: &Vec<serde_json::Value> = value.as_array().ok_or_else(|| {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user