From b8766a224ea482bad7e3f63e1e68560e54baf814 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 15 Feb 2016 13:28:43 +0100 Subject: [PATCH] Implement ExternalLinker for Entry for convenience --- libimaglink/src/external.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libimaglink/src/external.rs b/libimaglink/src/external.rs index faca38ac..52f1fa5f 100644 --- a/libimaglink/src/external.rs +++ b/libimaglink/src/external.rs @@ -1,3 +1,4 @@ +use libimagstore::store::Entry; use libimagstore::store::EntryHeader; use error::{LinkError, LinkErrorKind}; @@ -62,3 +63,14 @@ impl ExternalLinker for EntryHeader { } +impl ExternalLinker for Entry { + + fn get_external_link(&self) -> Result> { + self.get_header().get_external_link() + } + + fn set_external_link(&mut self, l: Link) -> Result> { + self.get_header_mut().set_external_link(l) + } + +}