Allow application to be built without git support

Caveats:
The help descriptions aren't changed with you remove the "git" feature.
This commit is contained in:
Ethan P committed 2020-05-15 13:58:48 -07:00
1 parent 0aca8cab0b
commit 887e61a99d
5 files changed
+75 -60

No files matched your search

+1
View File
@@ -270,6 +270,7 @@ impl<'a> PrettyPrinter<'a> {
style_components.push(StyleComponent::Snip);
}
if self.active_style_components.vcs_modification_markers {
#[cfg(feature = "git")]
style_components.push(StyleComponent::Changes);
}
self.config.style_components = StyleComponents::new(&style_components);