mirror of
https://github.com/Hopiu/lychee.git
synced 2026-04-25 07:24:46 +00:00
Fix clippy lint (#383)
This commit is contained in:
parent
f92f4f516a
commit
e8bab82d76
1 changed files with 3 additions and 3 deletions
|
|
@ -184,19 +184,19 @@ mod test {
|
|||
|
||||
#[tokio::test]
|
||||
async fn test_stats() {
|
||||
let stata = [
|
||||
let status_codes = [
|
||||
StatusCode::OK,
|
||||
StatusCode::PERMANENT_REDIRECT,
|
||||
StatusCode::BAD_GATEWAY,
|
||||
];
|
||||
|
||||
let mut stats = ResponseStats::new();
|
||||
for status in &stata {
|
||||
for status in &status_codes {
|
||||
stats.add(get_mock_status_response(status).await);
|
||||
}
|
||||
|
||||
let mut expected_map: HashMap<Input, HashSet<ResponseBody>> = HashMap::new();
|
||||
for status in &stata {
|
||||
for status in &status_codes {
|
||||
if status.is_server_error() || status.is_client_error() || status.is_redirection() {
|
||||
let Response(input, response_body) = get_mock_status_response(status).await;
|
||||
let entry = expected_map.entry(input).or_default();
|
||||
|
|
|
|||
Loading…
Reference in a new issue