From 303a0c2bf8fdd7a0fa73fe9c3f8025641e2d7315 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 9 Jun 2016 19:42:08 +0200 Subject: [PATCH] Impl RefFlags::with_content_hashing() --- libimagref/src/flags.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libimagref/src/flags.rs b/libimagref/src/flags.rs index 17ff9fc7..5a51b0c4 100644 --- a/libimagref/src/flags.rs +++ b/libimagref/src/flags.rs @@ -37,8 +37,9 @@ impl RefFlags { self.with_content_hashing(b) } - pub fn with_content_hashing(self, b: bool) -> RefFlags { - unimplemented!() + pub fn with_content_hashing(mut self, b: bool) -> RefFlags { + self.content_hashing = b; + self } pub fn with_permission_tracking(mut self, b: bool) -> RefFlags {