From 2721f9380ec99b25add9c5cfbad87ba731b09134 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Fri, 9 Dec 2022 12:23:16 +0000 Subject: [PATCH] Release `v2.3.1` (#173) * Bump versions * Update CHANGELOG * Clippy * Update CHANGELOG.md Co-authored-by: Nazar Mokrynskyi Co-authored-by: Nazar Mokrynskyi --- CHANGELOG.md | 7 ++++++- Cargo.toml | 4 ++-- derive/Cargo.toml | 2 +- derive/src/utils.rs | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cf024ab..0793fd5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [2.3.0] - 2022-10.27 +## [2.3.1] - 2022-12-09 + +### Fixed +- Change NonZero* TypeInfo implementation to not be recursive [(#171)](https://github.com/paritytech/scale-info/pull/171) + +## [2.3.0] - 2022-10-27 Implement the missing pieces for constructing `PortableRegistry` dynamically at runtime. This allows languages where static rust types are not available to use it. diff --git a/Cargo.toml b/Cargo.toml index 5f19c138..2f852707 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "scale-info" -version = "2.3.0" +version = "2.3.1" authors = ["Parity Technologies "] edition = "2021" rust-version = "1.60.0" @@ -17,7 +17,7 @@ include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"] [dependencies] bitvec = { version = "1", default-features = false, features = ["alloc"], optional = true } cfg-if = "1.0" -scale-info-derive = { version = "2.3.0", path = "derive", default-features = false, optional = true } +scale-info-derive = { version = "2.3.1", path = "derive", default-features = false, optional = true } serde = { version = "1", default-features = false, optional = true, features = ["derive", "alloc"] } derive_more = { version = "0.99.1", default-features = false, features = ["from"] } scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } diff --git a/derive/Cargo.toml b/derive/Cargo.toml index 3ab80450..3ea05f23 100644 --- a/derive/Cargo.toml +++ b/derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "scale-info-derive" -version = "2.3.0" +version = "2.3.1" authors = [ "Parity Technologies ", "Centrality Developers ", diff --git a/derive/src/utils.rs b/derive/src/utils.rs index 3029856c..cb2f4967 100644 --- a/derive/src/utils.rs +++ b/derive/src/utils.rs @@ -38,7 +38,7 @@ pub fn variant_index(v: &Variant, i: usize) -> TokenStream { index.map(|i| quote! { #i }).unwrap_or_else(|| { v.discriminant .as_ref() - .map(|&(_, ref expr)| quote! { #expr }) + .map(|(_, ref expr)| quote! { #expr }) .unwrap_or_else(|| quote! { #i }) }) }