From 5fe8a8342b8550eca8b8a923c81fb7af9754647b Mon Sep 17 00:00:00 2001 From: sharkdp Date: Fri, 24 Apr 2020 16:51:11 +0200 Subject: [PATCH] Add annotations again --- src/controller.rs | 1 + src/printer.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/controller.rs b/src/controller.rs index 7d760a2f..6e0cdb2a 100644 --- a/src/controller.rs +++ b/src/controller.rs @@ -138,6 +138,7 @@ impl<'b> Controller<'b> { printer: &mut dyn Printer, writer: &mut dyn Write, input: &mut OpenedInput, + #[cfg(feature = "git")] line_changes: &Option, ) -> Result<()> { if !input.reader.first_line.is_empty() || self.config.style_components.header() { diff --git a/src/printer.rs b/src/printer.rs index d022dbcf..bddf6d89 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -101,6 +101,7 @@ impl<'a> InteractivePrinter<'a> { config: &'a Config, assets: &'a HighlightingAssets, input: &mut OpenedInput, + #[cfg(feature = "git")] line_changes: &'a Option, ) -> Self { let theme = assets.get_theme(&config.theme);