Impl Default for RefFlags

This commit is contained in:
Matthias Beyer 2016-06-26 11:35:16 +02:00
parent 757d69f41a
commit bb4b705816

View file

@ -5,7 +5,6 @@ use toml::Value;
use error::RefErrorKind as REK; use error::RefErrorKind as REK;
use result::Result; use result::Result;
#[derive(Default)]
pub struct RefFlags { pub struct RefFlags {
content_hashing: bool, content_hashing: bool,
permission_tracking: 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,
}
}
}