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