Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Mar 28, 2023
1 parent 94ef7bb commit 9d6a7b3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions crates/swc_ecma_codegen/tests/sourcemap.rs
@@ -1,5 +1,3 @@
#![feature(bench_black_box)]

use std::{fs::read_to_string, path::PathBuf};

use rustc_hash::FxHashSet;
Expand Down
1 change: 0 additions & 1 deletion crates/swc_ecma_parser/src/lib.rs
Expand Up @@ -114,7 +114,6 @@
//! [tc39/test262]:https://github.com/tc39/test262

#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(test, feature(bench_black_box))]
#![cfg_attr(test, feature(test))]
#![deny(clippy::all)]
#![deny(unused)]
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_plugin_runner/src/memory_interop.rs
Expand Up @@ -8,7 +8,7 @@ pub fn copy_bytes_into_host(memory: &Memory, bytes_ptr: u32, bytes_ptr_len: u32)

// Deref & read through plugin's wasm memory space via returned ptr
let derefed_ptr = ptr
.deref(memory, 0, bytes_ptr_len as u32)
.deref(memory, 0, bytes_ptr_len)
.expect("Should able to deref from given ptr");

derefed_ptr
Expand Down

0 comments on commit 9d6a7b3

Please sign in to comment.