From cc97f4c6496acf0f92d9caa45856331f094a7f38 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile <60601340+lexnv@users.noreply.github.com> Date: Mon, 3 Jul 2023 18:27:46 +0300 Subject: [PATCH] Release 2.9.0 (#189) * Release 2.9.0 Signed-off-by: Alexandru Vasile * Release derive Signed-off-by: Alexandru Vasile * Adjust fmt Signed-off-by: Alexandru Vasile * Changelog Signed-off-by: Alexandru Vasile * Adjust changelog link Signed-off-by: Alexandru Vasile --------- Signed-off-by: Alexandru Vasile --- CHANGELOG.md | 5 +++++ Cargo.toml | 4 ++-- derive/Cargo.toml | 2 +- src/portable.rs | 4 +--- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c1261f0..e49c03d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ 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.9.0] - 2023-07-03 + +### Changed +- Expose `PortableType` as public [(#188)](https://github.com/paritytech/scale-info/pull/188) + ## [2.8.0] - 2023-06-21 ### Added diff --git a/Cargo.toml b/Cargo.toml index f210664b..a5947add 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "scale-info" -version = "2.8.0" +version = "2.9.0" 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.8.0", path = "derive", default-features = false, optional = true } +scale-info-derive = { version = "2.9.0", 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 9d120fa3..91d2cb9d 100644 --- a/derive/Cargo.toml +++ b/derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "scale-info-derive" -version = "2.8.0" +version = "2.9.0" authors = [ "Parity Technologies ", "Centrality Developers ", diff --git a/src/portable.rs b/src/portable.rs index 88bd9e9f..f83142f9 100644 --- a/src/portable.rs +++ b/src/portable.rs @@ -127,9 +127,7 @@ impl PortableRegistry { // Make sure any type params are also retained: for param in ty.ty.type_params.iter_mut() { - let Some(ty) = ¶m.ty else { - continue - }; + let Some(ty) = ¶m.ty else { continue }; let new_id = retain_type(ty.id, types, new_types, retained_mappings); param.ty = Some(new_id).map(Into::into); }