From 33753c2619e99a66be58d40c3a9235b8e2520760 Mon Sep 17 00:00:00 2001 From: Andrey Yantsen Date: Mon, 3 Apr 2023 23:16:10 +0100 Subject: [PATCH] chore: allow println! in http_client when testing --- crates/plex-api/src/http_client.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/plex-api/src/http_client.rs b/crates/plex-api/src/http_client.rs index 39525aed..8a0b53d6 100644 --- a/crates/plex-api/src/http_client.rs +++ b/crates/plex-api/src/http_client.rs @@ -411,6 +411,8 @@ where Ok(response) => Ok(response), Err(error) => { #[cfg(feature = "tests_deny_unknown_fields")] + // We're in tests, so it's fine to print + #[allow(clippy::print_stdout)] { println!("Received body: {body}"); } @@ -436,6 +438,8 @@ where Ok(response) => Ok(response), Err(error) => { #[cfg(feature = "tests_deny_unknown_fields")] + // We're in tests, so it's fine to print + #[allow(clippy::print_stdout)] { println!("Received body: {body}"); }