@@ -165,10 +165,13 @@ impl<'a> PrettyPrinter<'a> {
165165 self
166166 }
167167
168− /// Whether to show modification markers for VCS changes
169− #[cfg(feature = "git")]
168+ /// Whether to show modification markers for VCS changes. This has no effect if
169+ /// the `git` feature is not activated.
170170 pub fn vcs_modification_markers(&mut self, yes: bool) -> &mut Self {
171− self.active_style_components.vcs_modification_markers = yes;
171+ #[cfg(feature = "git")]
172+ {
173+ self.active_style_components.vcs_modification_markers = yes;
174+ }
172175 self
173176 }
174177