summaryrefslogtreecommitdiffstats
path: root/src/handlers/git_show_file.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/handlers/git_show_file.rs')
-rw-r--r--src/handlers/git_show_file.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/handlers/git_show_file.rs b/src/handlers/git_show_file.rs
index d5eeb512..eb261203 100644
--- a/src/handlers/git_show_file.rs
+++ b/src/handlers/git_show_file.rs
@@ -9,9 +9,7 @@ impl<'a> StateMachine<'a> {
self.painter.emit()?;
let mut handled_line = false;
if matches!(self.state, State::Unknown) {
- if let Some(process::CallingProcess::GitShow(_, extension)) =
- process::calling_process().as_deref()
- {
+ if let process::CallingProcess::GitShow(_, extension) = &*process::calling_process() {
self.state = State::GitShowFile;
self.painter.set_syntax(extension.as_deref());
self.painter.set_highlighter();