mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-11-10 06:34:18 +00:00
Make Page::read take a mutable reference
Signed-off-by: Serial <69764315+Serial-ATA@users.noreply.github.com>
This commit is contained in:
parent
e7af53dde7
commit
37fc8ef905
3 changed files with 5 additions and 5 deletions
2
ogg_pager/Cargo.lock
generated
2
ogg_pager/Cargo.lock
generated
|
@ -10,7 +10,7 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
|
|||
|
||||
[[package]]
|
||||
name = "ogg_pager"
|
||||
version = "0.1.5"
|
||||
version = "0.1.6"
|
||||
dependencies = [
|
||||
"byteorder",
|
||||
]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "ogg_pager"
|
||||
version = "0.1.5"
|
||||
version = "0.1.6"
|
||||
authors = ["Serial <69764315+Serial-ATA@users.noreply.github.com>"]
|
||||
edition = "2018"
|
||||
repository = "https://github.com/Serial-ATA/lofty-rs"
|
||||
|
|
|
@ -5,8 +5,8 @@ use std::io::{Read, Seek, SeekFrom};
|
|||
|
||||
use byteorder::{LittleEndian, ReadBytesExt};
|
||||
|
||||
pub use error::{PageError, Result};
|
||||
pub use crc::crc32;
|
||||
pub use error::{PageError, Result};
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct Page {
|
||||
|
@ -47,7 +47,7 @@ impl Page {
|
|||
}
|
||||
|
||||
/// Attempts to get a Page from a reader
|
||||
pub fn read<V>(mut data: V) -> Result<Self>
|
||||
pub fn read<V>(data: &mut V) -> Result<Self>
|
||||
where
|
||||
V: Read + Seek,
|
||||
{
|
||||
|
@ -167,4 +167,4 @@ pub fn segments(cont: &[u8]) -> Vec<u8> {
|
|||
}
|
||||
|
||||
segments
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue