Skip to content

Commit

Permalink
fix: Add missing clap::builder::OsStr impl
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Feb 11, 2024
1 parent 9295e32 commit 323345b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions clap_builder/src/builder/os_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,6 @@ impl From<Str> for OsStr {
}
}

#[cfg(feature = "perf")]
impl From<&'_ Str> for OsStr {
fn from(id: &'_ Str) -> Self {
match id.clone().into_inner() {
crate::builder::StrInner::Static(s) => Self::from_static_ref(std::ffi::OsStr::new(s)),
crate::builder::StrInner::Owned(s) => Self::from_ref(std::ffi::OsStr::new(s.as_ref())),
}
}
}

impl From<&'_ Str> for OsStr {
fn from(id: &'_ Str) -> Self {
id.clone().into()
Expand Down

0 comments on commit 323345b

Please sign in to comment.