diff --git a/.github/semantic.yml b/.github/semantic.yml deleted file mode 100644 index 4b50b34..0000000 --- a/.github/semantic.yml +++ /dev/null @@ -1,15 +0,0 @@ -# Always validate the PR title, and ignore the commits -titleOnly: true - -types: - - major - - feat - - fix - - chore - - docs - - style - - refactor - - test - - build - - ci - - revert diff --git a/.gitignore b/.gitignore index 671ef89..7f7be13 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,6 @@ Cargo.lock # These are backup files generated by rustfmt **/*.rs.bk +# IDEs +.vscode/ +.idea/ diff --git a/Cargo.toml b/Cargo.toml index 9ebb5df..6c36c2b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ description = "rust port of identicon generator for polkadot from polkadot.js" license = "Apache-2.0" name = "plot_icon" -version = "0.2.0" +version = "0.3.0" authors = ["Alexander Slesarev ", "Vera Abramova "] edition = "2021" repository = "https://github.com/paritytech/polkadot-identicon-rust" @@ -15,7 +15,7 @@ hex = {version = "0.4.3", optional = true} image = {version = "0.24.0", default-features = false, features = ["ico"], optional = true} palette = {version = "0.6.0", default-features = false, features = ["std"]} png = {version = "0.17.3", optional = true} -svg = {version = "0.10.0", optional = true} +svg = {version = "0.13.0", optional = true} [features] default = ["pix", "vec"] diff --git a/src/lib.rs b/src/lib.rs index 7d3e429..648e60f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -251,7 +251,7 @@ pub fn generate_png_scaled_custom_with_colors( size_in_pixels as u32, filter_type, ); - make_png_from_data(&image_small.to_vec(), size_in_pixels as u16).map_err(IdenticonError::Png) + make_png_from_data(&image_small, size_in_pixels as u16).map_err(IdenticonError::Png) } /// Data for small-sized identicon `png`, from `&[u8]` input slice,