Merge branch 'master' of github.com:ethcore/parity into fixed_hash_util

This commit is contained in:
debris
2016-08-03 16:31:13 +02:00
64 changed files with 896 additions and 672 deletions

View File

@@ -36,7 +36,7 @@ use std::fmt;
use std::slice;
use std::ops::{Deref, DerefMut};
/// Slie pretty print helper
/// Slice pretty print helper
pub struct PrettySlice<'a> (&'a [u8]);
impl<'a> fmt::Debug for PrettySlice<'a> {

View File

@@ -71,6 +71,9 @@ impl<T> UsingQueue<T> where T: Clone {
self.pending = Some(b);
}
/// Is there anything in the queue currently?
pub fn is_in_use(&self) -> bool { self.in_use.len() > 0 }
/// Clears everything; the queue is entirely reset.
pub fn reset(&mut self) {
self.pending = None;