Skip to content

Commit 739ade1

Browse files
authored
Update all crates to edition 2021 (#4045)
1 parent 2467e79 commit 739ade1

File tree

62 files changed

+68
-65
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+68
-65
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ documentation = "https://docs.rs/wasm-bindgen"
1111
description = """
1212
Easy support for interacting between JS and Rust.
1313
"""
14-
edition = "2018"
14+
edition = "2021"
1515
rust-version = "1.57"
1616

1717
[package.metadata.docs.rs]

benchmarks/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "wasm-bindgen-benchmark"
33
version = "0.1.0"
44
authors = ["The wasm-bindgen Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
[dependencies]
88
wasm-bindgen = { path = '../' }

crates/backend/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ documentation = "https://docs.rs/wasm-bindgen-backend"
99
description = """
1010
Backend code generation of the wasm-bindgen tool
1111
"""
12-
edition = "2018"
12+
edition = "2021"
1313
rust-version = "1.57"
1414

1515
[features]

crates/cli-support/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ documentation = "https://docs.rs/wasm-bindgen-cli-support"
99
description = """
1010
Shared support for the wasm-bindgen-cli package, an internal dependency
1111
"""
12-
edition = '2018'
12+
edition = "2021"
1313
rust-version = "1.76"
1414

1515
[dependencies]

crates/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description = """
1111
Command line interface of the `#[wasm_bindgen]` attribute and project. For more
1212
information see https://github.com/rustwasm/wasm-bindgen.
1313
"""
14-
edition = '2018'
14+
edition = "2021"
1515
default-run = 'wasm-bindgen'
1616
rust-version = "1.76"
1717

crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ pub fn run(server: &SocketAddr, shell: &Shell, timeout: u64) -> Result<(), Error
7171
let mut cmd = Command::new(path);
7272
cmd.args(args).arg(format!("--port={}", driver_addr.port()));
7373
let mut child = BackgroundChild::spawn(path, &mut cmd, shell)?;
74-
drop_log = Box::new(move || child.print_stdio_on_drop = false);
74+
drop_log = Box::new(move || {
75+
let _ = &child;
76+
child.print_stdio_on_drop = false;
77+
});
7578

7679
// Wait for the driver to come online and bind its port before we try to
7780
// connect to it.

crates/cli/tests/reference.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn runtest(test: &Path) -> Result<()> {
6262
name = \"reference-test\"
6363
authors = []
6464
version = \"1.0.0\"
65-
edition = '2018'
65+
edition = '2021'
6666
6767
[dependencies]
6868
wasm-bindgen = {{ path = '{}' }}

crates/cli/tests/wasm-bindgen/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ impl Project {
7979
name = \"{}\"
8080
authors = []
8181
version = \"1.0.0\"
82-
edition = '2018'
82+
edition = '2021'
8383
8484
[dependencies]
8585
wasm-bindgen = {{ path = '{}' }}
@@ -207,7 +207,7 @@ fn bin_crate_works() {
207207
name = \"bin_crate_works\"
208208
authors = []
209209
version = \"1.0.0\"
210-
edition = '2018'
210+
edition = '2021'
211211
212212
[dependencies]
213213
wasm-bindgen = {{ path = '{}' }}
@@ -254,7 +254,7 @@ fn bin_crate_works_without_name_section() {
254254
name = \"bin_crate_works_without_name_section\"
255255
authors = []
256256
version = \"1.0.0\"
257-
edition = '2018'
257+
edition = '2021'
258258
259259
[dependencies]
260260
wasm-bindgen = {{ path = '{}' }}

crates/cli/tests/wasm-bindgen/npm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ fn npm_conflict_rejected() {
7777
name = "npm_conflict_rejected"
7878
authors = []
7979
version = "1.0.0"
80-
edition = '2018'
80+
edition = '2021'
8181
8282
[dependencies]
8383
wasm-bindgen = {{ path = '{}' }}
@@ -124,7 +124,7 @@ fn npm_conflict_rejected() {
124124
name = "bar"
125125
authors = []
126126
version = "1.0.0"
127-
edition = '2018'
127+
edition = '2021'
128128
129129
[dependencies]
130130
wasm-bindgen = {{ path = '{}' }}

crates/example-tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "example-tests"
33
version = "0.1.0"
44
authors = ["The wasm-bindgen Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
[dependencies]
88
anyhow = "1.0.75"

0 commit comments

Comments
 (0)