Skip to content

Commit d13be2a

Browse files
authored
Rust edition 2021 (#132)
* Rust edition 2021 * Make clippy happy * Revert "Make clippy happy" This reverts commit 031153d. * Clipppyyyyyyy
1 parent 45bee59 commit d13be2a

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

.rustfmt.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ trailing_comma = "Vertical"
4343
match_block_trailing_comma = false
4444
blank_lines_upper_bound = 1
4545
blank_lines_lower_bound = 0
46-
edition = "2018" # changed
46+
edition = "2021" # changed
4747
version = "One"
4848
merge_derives = true
4949
use_try_shorthand = true # changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "scale-info"
33
version = "1.0.0"
44
authors = ["Parity Technologies <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66

77
license = "Apache-2.0"
88
readme = "README.md"

derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "scale-info-derive"
33
version = "1.0.0"
44
authors = ["Parity Technologies <[email protected]>", "Centrality Developers <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66

77
license = "Apache-2.0"
88
repository = "https://github.com/paritytech/scale-info"

src/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ pub struct FieldBuilder<
340340
marker: PhantomData<fn() -> (N, T)>,
341341
}
342342

343-
impl Default for FieldBuilder {
343+
impl<N, T> Default for FieldBuilder<N, T> {
344344
fn default() -> Self {
345345
FieldBuilder {
346346
name: Default::default(),

test_suite/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "scale-info-test-suite"
33
version = "0.0.0"
44
authors = ["Parity Technologies <[email protected]>", "Centrality Developers <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
license = "Apache-2.0"

test_suite/derive_tests_no_std/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "scale-info-derive-tests-no-std"
33
version = "0.0.0"
44
authors = ["Parity Technologies <[email protected]>", "Centrality Developers <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66
publish = false
77

88
license = "Apache-2.0"

0 commit comments

Comments
 (0)