Skip to content

Commit

Permalink
[new_rdata/rfc1035] Gate more things under 'std'
Browse files Browse the repository at this point in the history
  • Loading branch information
bal-e committed Dec 27, 2024
1 parent a8433c9 commit 86f14bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/new_rdata/rfc1035.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//! Core record data types.
use core::{fmt, ops::Range, str::FromStr};
use core::ops::Range;
#[cfg(feature = "std")]
use core::{fmt, str::FromStr};

#[cfg(feature = "std")]
use std::net::Ipv4Addr;
Expand Down Expand Up @@ -338,6 +340,7 @@ pub struct Wks {

//--- Formatting

#[cfg(feature = "std")]
impl fmt::Debug for Wks {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
struct Ports<'a>(&'a [u8]);
Expand Down

0 comments on commit 86f14bb

Please sign in to comment.