src/backup/data_blob_reader.rs: impl for Read instead of BufRead
This commit is contained in:
parent
39a4df61d6
commit
b791804f4b
|
@ -142,7 +142,7 @@ impl <'a, R: Read> DataBlobReader<'a, R> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl <'a, R: BufRead> Read for DataBlobReader<'a, R> {
|
impl <'a, R: Read> Read for DataBlobReader<'a, R> {
|
||||||
|
|
||||||
fn read(&mut self, buf: &mut [u8]) -> Result<usize, std::io::Error> {
|
fn read(&mut self, buf: &mut [u8]) -> Result<usize, std::io::Error> {
|
||||||
match &mut self.state {
|
match &mut self.state {
|
||||||
|
|
Loading…
Reference in New Issue