Skip to content

Commit e77c8cd

Browse files
committed
fix(filter): Remove 'parse' on no_std
1 parent 78d8ef1 commit e77c8cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/env_filter/src/filter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ impl Builder {
9898
/// See the [Enabling Logging] section for more details.
9999
///
100100
/// [Enabling Logging]: ../index.html#enabling-logging
101+
#[cfg(feature = "std")]
101102
pub fn parse(&mut self, filters: &str) -> &mut Self {
102103
#![allow(clippy::print_stderr)] // compatibility
103104

@@ -108,7 +109,6 @@ impl Builder {
108109
} = parse_spec(filters);
109110

110111
for error in errors {
111-
#[cfg(feature = "std")]
112112
eprintln!("warning: {error}, ignoring it");
113113
}
114114

0 commit comments

Comments
 (0)