Skip to content

Commit

Permalink
Release 2.9.0 (#189)
Browse files Browse the repository at this point in the history
* Release 2.9.0

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Release derive

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Adjust fmt

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Changelog

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Adjust changelog link

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

---------

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
  • Loading branch information
lexnv authored Jul 3, 2023
1 parent cf1aae8 commit cc97f4c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "scale-info"
version = "2.8.0"
version = "2.9.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2021"
rust-version = "1.60.0"
Expand All @@ -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"] }
Expand Down
2 changes: 1 addition & 1 deletion derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "scale-info-derive"
version = "2.8.0"
version = "2.9.0"
authors = [
"Parity Technologies <admin@parity.io>",
"Centrality Developers <support@centrality.ai>",
Expand Down
4 changes: 1 addition & 3 deletions src/portable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) = &param.ty else {
continue
};
let Some(ty) = &param.ty else { continue };
let new_id = retain_type(ty.id, types, new_types, retained_mappings);
param.ty = Some(new_id).map(Into::into);
}
Expand Down

0 comments on commit cc97f4c

Please sign in to comment.