Skip to content

Commit

Permalink
clippy fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-iohk committed Nov 19, 2024
1 parent 66bd5c5 commit b5dfe77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/error.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{env, usize::MAX};
use std::env;

use axum::{body::to_bytes, http::StatusCode, response::IntoResponse};
use mina_mesh::{MinaMeshConfig, MinaMeshError};
Expand All @@ -18,7 +18,7 @@ async fn assert_error_properties(
let response = error.into_response();
assert_eq!(response.status(), expected_status);

let body = to_bytes(response.into_body(), MAX).await.unwrap();
let body = to_bytes(response.into_body(), usize::MAX).await.unwrap();
let json: serde_json::Value = serde_json::from_slice(&body).unwrap();

assert_eq!(json["code"], expected_code);
Expand Down

0 comments on commit b5dfe77

Please sign in to comment.