From 3851445bbfecd898c9e62993ee36d7f74195267e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Garillot?= Date: Wed, 12 Jan 2022 11:18:49 -0500 Subject: [PATCH] chore: switch to Rust edition 2021 --- fastpay/Cargo.toml | 2 +- fastpay_core/Cargo.toml | 2 +- fastx_programmability/adapter/Cargo.toml | 2 +- fastx_programmability/framework/Cargo.toml | 2 +- fastx_programmability/verifier/Cargo.toml | 2 +- fastx_types/Cargo.toml | 2 +- rustfmt.toml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/fastpay/Cargo.toml b/fastpay/Cargo.toml index e120c18bcda92..0a68de2f7b431 100644 --- a/fastpay/Cargo.toml +++ b/fastpay/Cargo.toml @@ -3,7 +3,7 @@ name = "fastpay" version = "0.1.0" authors = ["Libra "] publish = false -edition = "2018" +edition = "2021" [dependencies] anyhow = "1.0.52" diff --git a/fastpay_core/Cargo.toml b/fastpay_core/Cargo.toml index ef08e0c874f24..35624a205cb20 100644 --- a/fastpay_core/Cargo.toml +++ b/fastpay_core/Cargo.toml @@ -3,7 +3,7 @@ name = "fastpay_core" version = "0.1.0" authors = ["Libra "] publish = false -edition = "2018" +edition = "2021" [dependencies] rocksdb = "0.17.0" diff --git a/fastx_programmability/adapter/Cargo.toml b/fastx_programmability/adapter/Cargo.toml index 74bdf35797311..d9d847480580f 100644 --- a/fastx_programmability/adapter/Cargo.toml +++ b/fastx_programmability/adapter/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Mysten Labs "] description = "Adapter and accompanying CLI for local fastX development" license = "Apache-2.0" publish = false -edition = "2018" +edition = "2021" [dependencies] anyhow = "1.0.52" diff --git a/fastx_programmability/framework/Cargo.toml b/fastx_programmability/framework/Cargo.toml index 56022577f6b2b..ce73d7c3a9420 100644 --- a/fastx_programmability/framework/Cargo.toml +++ b/fastx_programmability/framework/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "fastx-framework" version = "0.1.0" -edition = "2018" +edition = "2021" authors = ["Mysten Labs "] description = "Move framework for fastX platform" license = "Apache-2.0" diff --git a/fastx_programmability/verifier/Cargo.toml b/fastx_programmability/verifier/Cargo.toml index ec597da733fee..fb2a137a4df30 100644 --- a/fastx_programmability/verifier/Cargo.toml +++ b/fastx_programmability/verifier/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "fastx-verifier" version = "0.1.0" -edition = "2018" +edition = "2021" authors = ["Mysten Labs "] description = "Move framework for fastX platform" license = "Apache-2.0" diff --git a/fastx_types/Cargo.toml b/fastx_types/Cargo.toml index 015d213c6da73..bc781d6fb03fd 100644 --- a/fastx_types/Cargo.toml +++ b/fastx_types/Cargo.toml @@ -3,7 +3,7 @@ name = "fastx-types" version = "0.1.0" authors = ["Mysten Labs "] publish = false -edition = "2018" +edition = "2021" [dependencies] anyhow = "1.0.52" diff --git a/rustfmt.toml b/rustfmt.toml index 80eeb4054dc59..55797efb6bd4a 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,2 +1,2 @@ -edition = "2018" +edition = "2021" use_field_init_shorthand = true