Bump base64 from 0.13 to 0.22 (#219)

This commit is contained in:
DCjanus 2024-05-05 21:54:28 +08:00 committed by GitHub
parent a17e7107dd
commit 1fd1ee139c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 9 deletions

14
Cargo.lock generated
View file

@ -97,25 +97,25 @@ dependencies = [
name = "badge"
version = "0.2.0"
dependencies = [
"base64 0.13.1",
"base64 0.22.1",
"once_cell",
"rusttype",
"serde",
"serde_urlencoded",
]
[[package]]
name = "base64"
version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8"
[[package]]
name = "base64"
version = "0.21.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
[[package]]
name = "base64"
version = "0.22.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
[[package]]
name = "bitflags"
version = "1.3.2"

View file

@ -12,7 +12,7 @@ edition = "2021"
path = "badge.rs"
[dependencies]
base64 = "0.13"
base64 = "0.22"
once_cell = "1"
rusttype = "0.9"
serde = { version = "1", features = ["derive"] }

View file

@ -88,7 +88,7 @@ impl Badge {
pub fn to_svg_data_uri(&self) -> String {
format!(
"data:image/svg+xml;base64,{}",
Base64Display::with_config(self.to_svg().as_bytes(), base64::STANDARD)
Base64Display::new(self.to_svg().as_bytes(), &base64::prelude::BASE64_STANDARD)
)
}