Upgrade dependencies
This commit is contained in:
parent
327486a4bc
commit
b818a59424
785
Cargo.lock
generated
785
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -15,9 +15,9 @@ categories = [ "command-line-utilities", "filesystem", "multimedia" ]
|
|||||||
travis-ci = { repository = "AndrewRadev/id3-image" }
|
travis-ci = { repository = "AndrewRadev/id3-image" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
id3 = "0.3.0"
|
id3 = "0.5"
|
||||||
image = "0.22.3"
|
image = "0.23"
|
||||||
structopt = { version = "0.3.5", default-features = false }
|
structopt = { version = "0.3", default-features = false }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
tempfile = "3.0.6"
|
tempfile = "3.1"
|
||||||
|
@ -16,7 +16,7 @@ pub fn embed_image(music_filename: &Path, image_filename: &Path) -> Result<(), B
|
|||||||
|
|
||||||
let mut encoded_image_bytes = Vec::new();
|
let mut encoded_image_bytes = Vec::new();
|
||||||
// Unwrap: Writing to a Vec should always succeed;
|
// Unwrap: Writing to a Vec should always succeed;
|
||||||
image.write_to(&mut encoded_image_bytes, image::ImageOutputFormat::JPEG(90)).unwrap();
|
image.write_to(&mut encoded_image_bytes, image::ImageOutputFormat::Jpeg(90)).unwrap();
|
||||||
|
|
||||||
tag.add_picture(id3::frame::Picture {
|
tag.add_picture(id3::frame::Picture {
|
||||||
mime_type: "image/jpeg".to_string(),
|
mime_type: "image/jpeg".to_string(),
|
||||||
|
Loading…
Reference in New Issue
Block a user