Remove two warnings about unneccesary safe blocks.
Since a snapshot was done last night, these are good to go.
This commit is contained in:
parent
f323b0c8ba
commit
eb3f47a40a
@ -210,9 +210,7 @@ pub fn from_args() -> FileInput {
|
||||
pub fn next_file(&self) -> bool {
|
||||
// No more files
|
||||
|
||||
// unsafe block can be removed after the next snapshot
|
||||
// (next one after 2013-05-03)
|
||||
if unsafe { self.fi.files.is_empty() } {
|
||||
if self.fi.files.is_empty() {
|
||||
self.fi.current_reader = None;
|
||||
return false;
|
||||
}
|
||||
@ -324,9 +322,7 @@ fn read(&self, buf: &mut [u8], len: uint) -> uint {
|
||||
fn eof(&self) -> bool {
|
||||
// we've run out of files, and current_reader is either None or eof.
|
||||
|
||||
// unsafe block can be removed after the next snapshot
|
||||
// (next one after 2013-05-03)
|
||||
(unsafe { self.fi.files.is_empty() }) &&
|
||||
self.fi.files.is_empty() &&
|
||||
match self.fi.current_reader { None => true, Some(r) => r.eof() }
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user