Remove creation of duplicate AnonPipe
The File is unwrapped to a Handle into an AnonPipe, and then that AnonPipe was unwrapped to a Handle into another AnonPipe. The second operation is entirely redundant.
This commit is contained in:
parent
d5b4c2e4f1
commit
0d8c33f6f1
1 changed files with 0 additions and 1 deletions
|
@ -143,7 +143,6 @@ pub fn anon_pipe(ours_readable: bool, their_handle_inheritable: bool) -> io::Res
|
||||||
};
|
};
|
||||||
opts.security_attributes(&mut sa);
|
opts.security_attributes(&mut sa);
|
||||||
let theirs = File::open(Path::new(&name), &opts)?;
|
let theirs = File::open(Path::new(&name), &opts)?;
|
||||||
let theirs = AnonPipe { inner: theirs.into_inner() };
|
|
||||||
|
|
||||||
Ok(Pipes {
|
Ok(Pipes {
|
||||||
ours: AnonPipe { inner: ours },
|
ours: AnonPipe { inner: ours },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue