Skip to content

Commit

Permalink
Merge pull request #5 from paritytech/update-svg-crate
Browse files Browse the repository at this point in the history
fix #4: upgrade svg crate
  • Loading branch information
prybalko authored Mar 17, 2023
2 parents 39eeded + f29ba82 commit 098ea59
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
15 changes: 0 additions & 15 deletions .github/semantic.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ Cargo.lock
# These are backup files generated by rustfmt
**/*.rs.bk

# IDEs
.vscode/
.idea/
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <slesarew@gmail.com>", "Vera Abramova <abramova.vera@gmail.com>"]
edition = "2021"
repository = "https://github.com/paritytech/polkadot-identicon-rust"
Expand All @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 098ea59

Please sign in to comment.