diff options
author | Kevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com> | 2020-02-25 22:01:24 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-26 01:01:24 -0500 |
commit | 5946808f66aab1983ade3db2541734bb43626a72 (patch) | |
tree | adb526497a9efc29d1b5744ae52449f08f453ef0 /cli/ops/process.rs | |
parent | e53064c4f22efeb8a4eda2712e15c77d2699a686 (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.rs | 2 |
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())?; |