From 323345b3bc09d5b1b8b786c064f7285c82654791 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Sat, 10 Feb 2024 19:59:40 -0600 Subject: [PATCH] fix: Add missing clap::builder::OsStr impl Found via rust-lang/cargo#10554 --- clap_builder/src/builder/os_str.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/clap_builder/src/builder/os_str.rs b/clap_builder/src/builder/os_str.rs index fe8928e09ee..e9d97eaa699 100644 --- a/clap_builder/src/builder/os_str.rs +++ b/clap_builder/src/builder/os_str.rs @@ -64,16 +64,6 @@ impl From 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()