diff options
| author | Dan Gohman <dev@sunfishcode.online> | 2022-05-19 06:41:35 -0700 |
|---|---|---|
| committer | Dan Gohman <dev@sunfishcode.online> | 2022-06-15 08:52:42 -0700 |
| commit | eb37bbcebc3f6d0981eef892817f3a4570e35907 (patch) | |
| tree | c99237a936396e781fc985c959cb59098816d822 /library/std/src/sys | |
| parent | a4cec9742b7e05c33c84cd75002cd56762f7e33b (diff) | |
| download | rust-eb37bbcebc3f6d0981eef892817f3a4570e35907.tar.gz rust-eb37bbcebc3f6d0981eef892817f3a4570e35907.zip | |
Document that `BorrowedFd` may be used to do a `dup`.
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/windows/handle.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/windows/handle.rs b/library/std/src/sys/windows/handle.rs index ef9a8bd6900..1e7b6e1eab0 100644 --- a/library/std/src/sys/windows/handle.rs +++ b/library/std/src/sys/windows/handle.rs @@ -218,7 +218,7 @@ impl Handle { inherit: bool, options: c::DWORD, ) -> io::Result<Self> { - Ok(Self(self.0.duplicate(access, inherit, options)?)) + Ok(Self(self.0.as_handle().duplicate(access, inherit, options)?)) } /// Performs a synchronous read. |
