summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/typeext/block.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/typeext/block.rs b/src/typeext/block.rs
index d6931c3..382578d 100644
--- a/src/typeext/block.rs
+++ b/src/typeext/block.rs
@@ -1,3 +1,5 @@
+use std::ops::Deref;
+
use failure::Error;
use futures::Future;
use futures::stream;
@@ -20,6 +22,14 @@ impl Into<Block> for BlockExt {
}
}
+impl Deref for BlockExt {
+ type Target = Block;
+
+ fn deref(&self) -> &Self::Target {
+ &self.block
+ }
+}
+
impl BlockExt {
pub fn from_block(block: Block, repo: Repository) -> Self {
BlockExt { block, repo }