Skip to content

Commit

Permalink
Rust edition 2021 (#132)
Browse files Browse the repository at this point in the history
* Rust edition 2021

* Make clippy happy

* Revert "Make clippy happy"

This reverts commit 031153d.

* Clipppyyyyyyy
  • Loading branch information
ascjones committed Oct 22, 2021
1 parent 45bee59 commit d13be2a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ trailing_comma = "Vertical"
match_block_trailing_comma = false
blank_lines_upper_bound = 1
blank_lines_lower_bound = 0
edition = "2018" # changed
edition = "2021" # changed
version = "One"
merge_derives = true
use_try_shorthand = true # changed
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "scale-info"
version = "1.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
edition = "2021"

license = "Apache-2.0"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "scale-info-derive"
version = "1.0.0"
authors = ["Parity Technologies <admin@parity.io>", "Centrality Developers <support@centrality.ai>"]
edition = "2018"
edition = "2021"

license = "Apache-2.0"
repository = "https://github.com/paritytech/scale-info"
Expand Down
2 changes: 1 addition & 1 deletion src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ pub struct FieldBuilder<
marker: PhantomData<fn() -> (N, T)>,
}

impl Default for FieldBuilder {
impl<N, T> Default for FieldBuilder<N, T> {
fn default() -> Self {
FieldBuilder {
name: Default::default(),
Expand Down
2 changes: 1 addition & 1 deletion test_suite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "scale-info-test-suite"
version = "0.0.0"
authors = ["Parity Technologies <admin@parity.io>", "Centrality Developers <support@centrality.ai>"]
edition = "2018"
edition = "2021"
publish = false

license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion test_suite/derive_tests_no_std/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "scale-info-derive-tests-no-std"
version = "0.0.0"
authors = ["Parity Technologies <admin@parity.io>", "Centrality Developers <support@centrality.ai>"]
edition = "2018"
edition = "2021"
publish = false

license = "Apache-2.0"
Expand Down

0 comments on commit d13be2a

Please sign in to comment.