Skip to content

Commit

Permalink
Rollback Defer implementation for Key
Browse files Browse the repository at this point in the history
  • Loading branch information
zetanumbers committed Dec 17, 2020
1 parent c10451b commit 085f17d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,15 @@ impl<State> Clone for Key<State> {
}
}

// TODO(#197) delete this and remove the Deref impl
impl<State> Deref for Key<State> {
type Target = State;

fn deref(&self) -> &Self::Target {
self.commit_at_root.deref()
}
}

impl<State> Debug for Key<State>
where
State: Debug,
Expand Down

0 comments on commit 085f17d

Please sign in to comment.