Renamed RlpStream::raw to as_raw
This commit is contained in:
@@ -101,7 +101,7 @@ impl Stream for RlpStream {
|
||||
self.unfinished_lists.len() == 0
|
||||
}
|
||||
|
||||
fn raw(&self) -> &[u8] {
|
||||
fn as_raw(&self) -> &[u8] {
|
||||
&self.encoder.bytes
|
||||
}
|
||||
|
||||
|
||||
@@ -284,7 +284,7 @@ pub trait Stream: Sized {
|
||||
/// }
|
||||
fn is_finished(&self) -> bool;
|
||||
|
||||
fn raw(&self) -> &[u8];
|
||||
fn as_raw(&self) -> &[u8];
|
||||
|
||||
/// Streams out encoded bytes.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user