Skip to content

Commit f45a32e

Browse files
authored
Merge pull request #5350 from epage/fix
fix: Add missing clap::builder::OsStr impl
2 parents 9295e32 + 323345b commit f45a32e

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

clap_builder/src/builder/os_str.rs

-10
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,6 @@ impl From<Str> for OsStr {
6464
}
6565
}
6666

67-
#[cfg(feature = "perf")]
68-
impl From<&'_ Str> for OsStr {
69-
fn from(id: &'_ Str) -> Self {
70-
match id.clone().into_inner() {
71-
crate::builder::StrInner::Static(s) => Self::from_static_ref(std::ffi::OsStr::new(s)),
72-
crate::builder::StrInner::Owned(s) => Self::from_ref(std::ffi::OsStr::new(s.as_ref())),
73-
}
74-
}
75-
}
76-
7767
impl From<&'_ Str> for OsStr {
7868
fn from(id: &'_ Str) -> Self {
7969
id.clone().into()

0 commit comments

Comments
 (0)