forked from M-Labs/rust-fatfs
Remove ReadSeek and ReadWriteSeek traits duplicated definition
This commit is contained in:
parent
3d29f66aba
commit
be0d969f7b
@ -2,12 +2,6 @@ use io::prelude::*;
|
|||||||
use io;
|
use io;
|
||||||
use core::cmp;
|
use core::cmp;
|
||||||
|
|
||||||
pub trait ReadSeek: Read + Seek {}
|
|
||||||
impl<T> ReadSeek for T where T: Read + Seek {}
|
|
||||||
|
|
||||||
pub trait ReadWriteSeek: Read + Write + Seek {}
|
|
||||||
impl<T> ReadWriteSeek for T where T: Read + Write + Seek {}
|
|
||||||
|
|
||||||
const BUF_SIZE: usize = 512;
|
const BUF_SIZE: usize = 512;
|
||||||
|
|
||||||
pub struct BufStream<T: Read+Write+Seek> {
|
pub struct BufStream<T: Read+Write+Seek> {
|
||||||
|
Loading…
Reference in New Issue
Block a user