Skip to content

Commit

Permalink
build(deps): dependency updates that dependabot skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
francisdb committed Aug 16, 2024
1 parent bd17973 commit 2f6f3d3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
20 changes: 10 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,33 @@ exclude = [

[dependencies]
byteorder = "1.5.0"
bytes = "1.5.0"
bytes = "1.7.1"
cfb = "0.10.0"
encoding_rs = "0.8.33"
encoding_rs = "0.8.34"
fake = { version = "2.9.2", features = ["derive"] }
md2 = "0.10.2"
nom = "7.1.3"
serde = { version = "1.0.188", features = ["derive"] }
serde_json = { version = "1.0.107", features = ["preserve_order"] }
serde = { version = "1.0.208", features = ["derive"] }
serde_json = { version = "1.0.125", features = ["preserve_order"] }
utf16string = "0.2.0"
quick-xml = { version = "0.36.0", features = ["serialize"] }
serde_repr = "0.1.16"
hex = "0.4.3"
wavefront_rs = "2.0.0-beta.1"
flate2 = "1.0.28"
image = "0.25.1"
flate2 = "1.0.31"
image = "0.25.2"
weezl = "0.1.8"
regex = "1.10.5"
regex = "1.10.6"

[dev-dependencies]
dirs = "5.0.1"
pretty_assertions = "1.4.0"
rand = "0.8.5"
rayon = "1.8.0"
rayon = "1.10.0"
testdir = "0.9.0"
walkdir = "2.4.0"
walkdir = "2.5.0"
roxmltree = "0.20.0"
testresult = "0.4.0"
testresult = "0.4.1"

[profile.test]
# level 0 is very slow for writing to compound files
Expand Down
10 changes: 5 additions & 5 deletions src/vpx/expanded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ fn read_images<P: AsRef<Path>>(expanded_dir: &P) -> io::Result<Vec<ImageData>> {
}
None =>
match dimensions_from_file {
Some((width_file,_)) => width_file,
Some((width_file, _)) => width_file,
None => return Err(io::Error::new(io::ErrorKind::InvalidData, "Image width not provided and could not be read from file")),
}
};
Expand All @@ -493,10 +493,10 @@ fn read_images<P: AsRef<Path>>(expanded_dir: &P) -> io::Result<Vec<ImageData>> {
}
None =>
match dimensions_from_file {
Some((_,height_file)) => height_file,
Some((_, height_file)) => height_file,
None => return Err(io::Error::new(io::ErrorKind::InvalidData, "Image height not provided and could not be read from file")),
}
};
};

let mut image = image_data_json.to_image_data(width, height, None);
if let Some(jpg) = &mut image.jpeg {
Expand All @@ -518,7 +518,7 @@ fn read_images<P: AsRef<Path>>(expanded_dir: &P) -> io::Result<Vec<ImageData>> {
}

fn read_image_dimensions(file_path: &PathBuf) -> io::Result<Option<(u32, u32)>> {
let decoder = image::io::Reader::open(file_path)?.with_guessed_format()?;
let decoder = image::ImageReader::open(file_path)?.with_guessed_format()?;
let dimensions_from_file = match decoder.into_dimensions() {
Ok(dimensions) => Some(dimensions),
Err(image_error) => {
Expand Down Expand Up @@ -546,7 +546,7 @@ fn read_image_dimensions_from_file_steam(
}
}?;
let cursor = std::io::Cursor::new(&jpeg.data);
let decoder = image::io::Reader::with_format(cursor, format);
let decoder = image::ImageReader::with_format(cursor, format);
match decoder.into_dimensions() {
Ok(dimensions) => Some(dimensions),
Err(image_error) => {
Expand Down

0 comments on commit 2f6f3d3

Please sign in to comment.