Fallout from stabilization
This commit is contained in:
parent
6e1879eaf1
commit
6abfac083f
78 changed files with 410 additions and 425 deletions
|
@ -439,9 +439,10 @@ mod test {
|
|||
|
||||
impl Reader for ShortReader {
|
||||
fn read(&mut self, _: &mut [u8]) -> io::IoResult<uint> {
|
||||
match self.lengths.remove(0) {
|
||||
Some(i) => Ok(i),
|
||||
None => Err(io::standard_error(io::EndOfFile))
|
||||
if self.lengths.is_empty() {
|
||||
Err(io::standard_error(io::EndOfFile))
|
||||
} else {
|
||||
Ok(self.lengths.remove(0))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue