style: BufferedReader -> BufferedRead

Single-method traits usually use the same name as their
method and aren't usually the 'noun' (which is usually an
implementation of them instead).

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2019-02-28 09:17:04 +01:00
parent 8f57971714
commit fded74d0c7
2 changed files with 4 additions and 4 deletions

View File

@ -235,7 +235,7 @@ impl BufferedDynamicReader {
}
}
impl crate::tools::BufferedReader for BufferedDynamicReader {
impl crate::tools::BufferedRead for BufferedDynamicReader {
fn buffered_read(&mut self, offset: u64) -> Result<&[u8], Error> {
@ -279,7 +279,7 @@ impl std::io::Read for BufferedDynamicReader {
fn read(&mut self, buf: &mut [u8]) -> Result<usize, std::io::Error> {
use std::io::{Error, ErrorKind};
use crate::tools::BufferedReader;
use crate::tools::BufferedRead;
let data = match self.buffered_read(self.read_offset) {
Ok(v) => v,