diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-06-26 11:35:16 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-07-04 19:29:02 +0200 |
commit | bb4b705816e6eccf9b282ef4d2eb9bc599501a11 (patch) | |
tree | 5b86437c96b96e7c90b6d2e52af704bd333062d2 /libimagref | |
parent | 757d69f41a2f0114061fb8b8dd2e9880c959151d (diff) |
Impl Default for RefFlags
Diffstat (limited to 'libimagref')
-rw-r--r-- | libimagref/src/flags.rs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libimagref/src/flags.rs b/libimagref/src/flags.rs index 083403af..211aee7c 100644 --- a/libimagref/src/flags.rs +++ b/libimagref/src/flags.rs @@ -5,7 +5,6 @@ use toml::Value; use error::RefErrorKind as REK; use result::Result; -#[derive(Default)] pub struct RefFlags { content_hashing: bool, permission_tracking: bool, @@ -72,3 +71,13 @@ impl Into<Value> for RefFlags { } +impl Default for RefFlags { + + fn default() -> RefFlags { + RefFlags { + content_hashing: false, + permission_tracking: false, + } + } +} + |