Skip to content

Commit

Permalink
chore: add conditional compilation for SocketAddr import
Browse files Browse the repository at this point in the history
commit-id:10ba730a
  • Loading branch information
nadin-Starkware committed Dec 23, 2024
1 parent 43c73ff commit a5af046
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ impl SerializeConfig for ComponentConfig {
}
}

#[cfg(any(feature = "testing", test))]
impl ComponentConfig {
pub fn disabled() -> ComponentConfig {
ComponentConfig {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use std::collections::BTreeMap;
#[cfg(any(feature = "testing", test))]
use std::net::SocketAddr;

use papyrus_config::dumping::{ser_optional_sub_config, ser_param, SerializeConfig};
Expand Down

0 comments on commit a5af046

Please sign in to comment.