Merge branch 'master' into accesscontrol

This commit is contained in:
Pyfisch
2015-01-06 20:37:23 +01:00
43 changed files with 201 additions and 180 deletions

View File

@@ -60,13 +60,15 @@ macro_rules! bench_header(
macro_rules! deref(
($from:ty -> $to:ty) => {
impl Deref<$to> for $from {
impl ::std::ops::Deref for $from {
type Target = $to;
fn deref<'a>(&'a self) -> &'a $to {
&self.0
}
}
impl DerefMut<$to> for $from {
impl ::std::ops::DerefMut for $from {
fn deref_mut<'a>(&'a mut self) -> &'a mut $to {
&mut self.0
}