change wrong at_end_of_stream value 'end' to 'at'
@@ -62,7 +62,7 @@ pub enum EOFAction {
#[derive(Debug)]
pub enum AtEndOfStream {
Not,
- End,
+ At,
Past
}
@@ -73,7 +73,7 @@ fn as_str(&self) -> &'static str {
match self {
AtEndOfStream::Not => "not",
AtEndOfStream::Past => "past",
- AtEndOfStream::End => "end",
+ AtEndOfStream::At => "at",
}
}
}
@@ -348,7 +348,7 @@ fn position_relative_to_end(&mut self) -> AtEndOfStream {
if let Ok(position) = file.seek(SeekFrom::Current(0)) {
return match position.cmp(&metadata.len()) {
Ordering::Equal => {
- AtEndOfStream::End
+ AtEndOfStream::At
}
Ordering::Less => {
AtEndOfStream::Not
