mirror of
https://github.com/deps-rs/deps.rs.git
synced 2024-11-22 02:16:30 +00:00
Bump base64 from 0.13 to 0.22 (#219)
This commit is contained in:
parent
a17e7107dd
commit
1fd1ee139c
3 changed files with 9 additions and 9 deletions
14
Cargo.lock
generated
14
Cargo.lock
generated
|
@ -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"
|
||||
|
|
|
@ -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"] }
|
||||
|
|
|
@ -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)
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue