From 3a4aaea6a80a0f098fd244c14133903760b69d92 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Fri, 22 Oct 2021 10:02:12 +0100 Subject: [PATCH] Rust edition 2021 --- .rustfmt.toml | 2 +- Cargo.toml | 2 +- derive/Cargo.toml | 2 +- test_suite/Cargo.toml | 2 +- test_suite/derive_tests_no_std/Cargo.toml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.rustfmt.toml b/.rustfmt.toml index 60f56501..82af1506 100644 --- a/.rustfmt.toml +++ b/.rustfmt.toml @@ -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 diff --git a/Cargo.toml b/Cargo.toml index 4d78c6fb..c71afa8d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "scale-info" version = "1.0.0" authors = ["Parity Technologies "] -edition = "2018" +edition = "2021" license = "Apache-2.0" readme = "README.md" diff --git a/derive/Cargo.toml b/derive/Cargo.toml index 13b24153..a6bb7b56 100644 --- a/derive/Cargo.toml +++ b/derive/Cargo.toml @@ -2,7 +2,7 @@ name = "scale-info-derive" version = "1.0.0" authors = ["Parity Technologies ", "Centrality Developers "] -edition = "2018" +edition = "2021" license = "Apache-2.0" repository = "https://github.com/paritytech/scale-info" diff --git a/test_suite/Cargo.toml b/test_suite/Cargo.toml index cc4b4ff4..8340f5b8 100644 --- a/test_suite/Cargo.toml +++ b/test_suite/Cargo.toml @@ -2,7 +2,7 @@ name = "scale-info-test-suite" version = "0.0.0" authors = ["Parity Technologies ", "Centrality Developers "] -edition = "2018" +edition = "2021" publish = false license = "Apache-2.0" diff --git a/test_suite/derive_tests_no_std/Cargo.toml b/test_suite/derive_tests_no_std/Cargo.toml index eca2c283..820c0efe 100644 --- a/test_suite/derive_tests_no_std/Cargo.toml +++ b/test_suite/derive_tests_no_std/Cargo.toml @@ -2,7 +2,7 @@ name = "scale-info-derive-tests-no-std" version = "0.0.0" authors = ["Parity Technologies ", "Centrality Developers "] -edition = "2018" +edition = "2021" publish = false license = "Apache-2.0"