mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-12-12 21:52:33 +00:00
Bump ogg_pager
This commit is contained in:
parent
43631ee977
commit
41e4b1a883
2 changed files with 3 additions and 4 deletions
|
@ -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"
|
||||
|
|
|
@ -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()?)?;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue