Skip to content

Commit 235700f

Browse files
committed
use make_ascii_uppercase in windows/process.rs
1 parent cc584d5 commit 235700f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/libstd/sys/windows/process.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use crate::sys::mutex::Mutex;
2020
use crate::sys::pipe::{self, AnonPipe};
2121
use crate::sys::stdio;
2222
use crate::sys_common::process::CommandEnv;
23-
use crate::sys_common::{AsInner, FromInner, IntoInner};
23+
use crate::sys_common::AsInner;
2424

2525
use libc::{c_void, EXIT_FAILURE, EXIT_SUCCESS};
2626

@@ -33,10 +33,9 @@ use libc::{c_void, EXIT_FAILURE, EXIT_SUCCESS};
3333
pub struct EnvKey(OsString);
3434

3535
impl From<OsString> for EnvKey {
36-
fn from(k: OsString) -> Self {
37-
let mut buf = k.into_inner().into_inner();
38-
buf.make_ascii_uppercase();
39-
EnvKey(FromInner::from_inner(FromInner::from_inner(buf)))
36+
fn from(mut k: OsString) -> Self {
37+
k.make_ascii_uppercase();
38+
EnvKey(k)
4039
}
4140
}
4241

0 commit comments

Comments
 (0)