Bump ogg_pager

This commit is contained in:
Serial 2022-03-03 17:04:34 -05:00
parent 43631ee977
commit 41e4b1a883
No known key found for this signature in database
GPG key ID: DA95198DC17C4568
2 changed files with 3 additions and 4 deletions

View file

@ -17,7 +17,7 @@ flate2 = { version = "1.0.22", optional = true }
# Vorbis comments pictures
base64 = { version = "0.13.0", optional = true }
# OGG Vorbis/Opus
ogg_pager = "0.3.0"
ogg_pager = "0.3.1"
# Key maps
once_cell = "1.9.0"
paste = "1.0.6"

View file

@ -12,7 +12,7 @@ pub(crate) fn write_to(
data: &mut File,
writer: &mut Vec<u8>,
first_md_content: Vec<u8>,
mut pages: &mut [Page],
pages: &mut [Page],
) -> Result<()> {
let mut remaining = Vec::new();
@ -85,9 +85,8 @@ pub(crate) fn write_to(
// Safe to unwrap, since `pages` is guaranteed to not be empty
let (last_page, remaining_pages) = pages.split_last_mut().unwrap();
pages = remaining_pages;
for p in pages.iter_mut() {
for p in remaining_pages.iter_mut() {
p.gen_crc()?;
writer.write_all(&*p.as_bytes()?)?;
}