Skip to content

Commit

Permalink
Updated deno and plugin_prepare for Deno 1.2.0 (#77)
Browse files Browse the repository at this point in the history
* Updated deno and plugin_prepare

* Update tests std

* Update deno_core
  • Loading branch information
lucacasonato authored Jul 15, 2020
1 parent 2503375 commit 9a6e169
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ jobs:
- name: Install rust
uses: hecrj/setup-rust-action@v1
with:
rust-version: 1.43.1
rust-version: 1.44.0
- name: Install clippy and rustfmt
run: |
rustup component add clippy
rustup component add rustfmt
- name: Install Deno
uses: denolib/setup-deno@master
with:
deno-version: 1.0.5
deno-version: 1.2.0
- name: Log versions
run: |
deno --version
Expand Down
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ bson = "0.14.1"
serde_json = "1.0.52"
serde = "1.0.106"
futures = "0.3.5"
deno_core = "0.48.3"
deno_core = "0.49.0"
lazy_static = "1.4.0"
2 changes: 1 addition & 1 deletion deps.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { prepare } from "https://deno.land/x/plugin_prepare@v0.6.0/mod.ts";
export { prepare } from "https://deno.land/x/plugin_prepare@v0.7.0/mod.ts";
7 changes: 4 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,11 @@ pub(crate) fn get_client(client_id: usize) -> Client {
map.get(&client_id).unwrap().clone()
}

fn op_command(_interface: &mut dyn Interface, data: &[u8], zero_copy: &mut [ZeroCopyBuf]) -> Op {
let args = CommandArgs::new(data);
fn op_command(_interface: &mut dyn Interface, zero_copy: &mut [ZeroCopyBuf]) -> Op {
let (first, rest) = zero_copy.split_first().unwrap();
let args = CommandArgs::new(first);
let args2 = args.clone();
let command = Command::new(args, zero_copy.to_vec());
let command = Command::new(args, rest.to_vec());
match args2.command_type {
CommandType::ConnectWithOptions => util::sync_op(command::connect_with_options, command),
CommandType::ConnectWithUri => util::sync_op(command::connect_with_uri, command),
Expand Down
4 changes: 2 additions & 2 deletions test.deps.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export { exists } from "https://deno.land/std@v0.53.0/fs/mod.ts";
export { exists } from "https://deno.land/std@0.61.0/fs/mod.ts";
export {
assert,
assertEquals,
assertThrows,
assertThrowsAsync,
} from "https://deno.land/std@v0.53.0/testing/asserts.ts";
} from "https://deno.land/std@0.61.0/testing/asserts.ts";

0 comments on commit 9a6e169

Please sign in to comment.