Move git changes support behind a feature

This commit is contained in:
David Tolnay authored and David Peter committed 2020-03-31 09:27:56 +02:00
1 parent 570805bc98
commit 4e11abdf9b
6 files changed
+31 -14

No files matched your search

+1
View File
@@ -68,6 +68,7 @@ impl StyleComponents {
StyleComponents(components.iter().cloned().collect())
}
#[cfg(feature = "git")]
pub fn changes(&self) -> bool {
self.0.contains(&StyleComponent::Changes)
}