summaryrefslogtreecommitdiff
path: root/cli/ops/process.rs
diff options
context:
space:
mode:
authorKevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com>2020-02-25 22:01:24 -0800
committerGitHub <noreply@github.com>2020-02-26 01:01:24 -0500
commit5946808f66aab1983ade3db2541734bb43626a72 (patch)
treeadb526497a9efc29d1b5744ae52449f08f453ef0 /cli/ops/process.rs
parente53064c4f22efeb8a4eda2712e15c77d2699a686 (diff)
tty: Deno.setRaw(rid, mode) to turn on/off raw mode (#3958)
Diffstat (limited to 'cli/ops/process.rs')
-rw-r--r--cli/ops/process.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/ops/process.rs b/cli/ops/process.rs
index 9da87bd39..82ac25bbe 100644
--- a/cli/ops/process.rs
+++ b/cli/ops/process.rs
@@ -33,7 +33,7 @@ fn clone_file(rid: u32, state: &State) -> Result<std::fs::File, OpError> {
.get_mut::<StreamResource>(rid)
.ok_or_else(OpError::bad_resource)?;
let file = match repr {
- StreamResource::FsFile(ref mut file) => file,
+ StreamResource::FsFile(ref mut file, _) => file,
_ => return Err(OpError::bad_resource()),
};
let tokio_file = futures::executor::block_on(file.try_clone())?;