Skip to content

Commit

Permalink
build(json): also build on test for other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed Sep 18, 2024
1 parent 4b3532d commit 9be03e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/json.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#![cfg_attr(
not(any(feature = "http-client", feature = "async-http-client")),
allow(dead_code)
)]

use crate::Error;

/// Shortcut for [`serde_json::from_str`] with [`crate::Error`].
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mod client_reqwest;
#[cfg(feature = "http-client")]
mod client_ureq;
mod error;
#[cfg(any(feature = "http-client", feature = "async-http-client"))]
#[cfg(any(test, feature = "http-client", feature = "async-http-client"))]
mod json;
mod macros;
pub mod objects;
Expand Down

0 comments on commit 9be03e2

Please sign in to comment.