Skip to content

Commit 857d58d

Browse files
committed
Mischose the feature gate bark bark bark
1 parent ae5776d commit 857d58d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/traits.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ impl FirstChars for str {
110110
}
111111

112112
/// Trait that provides a single method to get the first `N` "Unicode Scalar Values" from a string slice.
113-
#[cfg(any(feature = "espflash", feature = "macros"))]
113+
#[cfg(feature = "macros")]
114114
pub trait StrAsOption {
115115
/// If the string slice refers to an empty slice, return `None`, otherwise return the contained string.
116116
fn as_option(&self) -> Option<&str>;
117117
}
118-
#[cfg(any(feature = "espflash", feature = "macros"))]
118+
#[cfg(feature = "macros")]
119119
impl StrAsOption for str {
120120
fn as_option(&self) -> Option<&str> {
121121
if self.is_empty() { None } else { Some(self) }

0 commit comments

Comments
 (0)