Skip to content

Commit

Permalink
chore: allow println! in http_client when testing
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-yantsen committed Apr 3, 2023
1 parent d415390 commit 33753c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/plex-api/src/http_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
}
Expand All @@ -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}");
}
Expand Down

0 comments on commit 33753c2

Please sign in to comment.