Renamed RlpStream::raw to as_raw

This commit is contained in:
arkpar 2016-01-08 15:57:50 +01:00
parent 9286a03656
commit 647ea286ba
2 changed files with 2 additions and 2 deletions

View File

@ -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
} }

View File

@ -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.
/// ///