Fix ssz typos and unused import

This commit is contained in:
Paul Hauner 2018-09-13 13:02:15 +10:00
parent b6cfceb470
commit 5db0af59d7

View File

@ -14,7 +14,7 @@ pub struct SszStream {
} }
impl SszStream { impl SszStream {
/// Create a new, empty steam for writing ssz values. /// Create a new, empty stream for writing ssz values.
pub fn new() -> Self { pub fn new() -> Self {
SszStream { SszStream {
buffer: Vec::new() buffer: Vec::new()
@ -29,7 +29,7 @@ impl SszStream {
self self
} }
/// Append some ssz encoded bytes to the steam. /// Append some ssz encoded bytes to the stream.
/// ///
/// The length of the supplied bytes will be concatenated /// The length of the supplied bytes will be concatenated
/// to the stream before the supplied bytes. /// to the stream before the supplied bytes.
@ -78,7 +78,6 @@ pub fn encode_length(len: usize, length_bytes: usize) -> Vec<u8> {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::*; use super::*;
use super::super::ethereum_types::{ H256, U256 };
#[test] #[test]
#[should_panic] #[should_panic]