diff options
Diffstat (limited to 'src/handlers')
| -rw-r--r-- | src/handlers/blame.rs | 2 | ||||
| -rw-r--r-- | src/handlers/commit_meta.rs | 2 | ||||
| -rw-r--r-- | src/handlers/diff_header.rs | 2 | ||||
| -rw-r--r-- | src/handlers/diff_header_diff.rs | 2 | ||||
| -rw-r--r-- | src/handlers/diff_header_misc.rs | 2 | ||||
| -rw-r--r-- | src/handlers/diff_stat.rs | 2 | ||||
| -rw-r--r-- | src/handlers/git_show_file.rs | 2 | ||||
| -rw-r--r-- | src/handlers/grep.rs | 4 | ||||
| -rw-r--r-- | src/handlers/hunk.rs | 2 | ||||
| -rw-r--r-- | src/handlers/hunk_header.rs | 2 | ||||
| -rw-r--r-- | src/handlers/merge_conflict.rs | 2 | ||||
| -rw-r--r-- | src/handlers/mod.rs | 2 | ||||
| -rw-r--r-- | src/handlers/submodule.rs | 2 |
13 files changed, 14 insertions, 14 deletions
diff --git a/src/handlers/blame.rs b/src/handlers/blame.rs index 6c61810..47bda3a 100644 --- a/src/handlers/blame.rs +++ b/src/handlers/blame.rs @@ -24,7 +24,7 @@ pub enum BlameLineNumbers { Every(usize, FormatStringSimple), } -impl<'a> StateMachine<'a> { +impl StateMachine<'_> { /// If this is a line of git blame output then render it accordingly. If /// this is the first blame line, then set the syntax-highlighter language /// according to delta.default-language. diff --git a/src/handlers/commit_meta.rs b/src/handlers/commit_meta.rs index f60ba37..aee18c9 100644 --- a/src/handlers/commit_meta.rs +++ b/src/handlers/commit_meta.rs @@ -4,7 +4,7 @@ use super::draw; use crate::delta::{State, StateMachine}; use crate::features; -impl<'a> StateMachine<'a> { +impl StateMachine<'_> { #[inline] fn test_commit_meta_header_line(&self) -> bool { self.config.commit_regex.is_match(&self.line) diff --git a/src/handlers/diff_header.rs b/src/handlers/diff_header.rs index 99da998..78157cb 100644 --- a/src/handlers/diff_header.rs +++ b/src/handlers/diff_header.rs @@ -22,7 +22,7 @@ pub enum FileEvent { NoEvent, } -impl<'a> StateMachine<'a> { +impl StateMachine<'_> { /// Check for the old mode|new mode lines and cache their info for later use. pub fn handle_diff_header_mode_line(&mut self) -> std::io::Result<bool> { let mut handled_line = false; diff --git a/src/handlers/diff_header_diff.rs b/src/handlers/diff_header_diff.rs index d8c5319..e88f89d 100644 --- a/src/handlers/diff_header_diff.rs +++ b/src/handlers/diff_header_diff.rs @@ -1,7 +1,7 @@ use crate::delta::{DiffType, InMergeConflict, MergeParents, State, StateMachine}; use crate::handlers::diff_header::{get_repeated_file_path_from_diff_line, FileEvent}; -impl<'a> StateMachine<'a> { +impl StateMachine<'_> { #[inline] fn test_diff_header_diff_line(&self) -> bool { self.line.starts_with("diff ") diff --git a/src/handlers/diff_header_misc.rs b/src/handlers/diff_header_misc.rs index 0a75b37..4fb9d9e 100644 --- a/src/handlers/diff_header_misc.rs +++ b/src/handlers/diff_header_misc.rs @@ -1,7 +1,7 @@ use crate::delta::{DiffType, Source, State, StateMachine}; use crate::utils::path::relativize_path_maybe; -impl<'a> StateMachine<'a> { +impl StateMachine<'_> { #[inline] fn test_diff_file_missing(&self) -> bool { self.source == Source::DiffUnified && self.line.starts_with("Only in ") diff --git a/src/handlers/diff_stat.rs b/src/handlers/diff_stat.rs index 4c8a8b6..27b13c6 100644 --- a/src/handlers/diff_stat.rs +++ b/src/handlers/diff_stat.rs @@ -7,7 +7,7 @@ use crate::delta::{State, StateMachine}; use crate::features; use crate::utils; -impl<'a> StateMachine<'a> { +impl StateMachine<'_> { #[inline] fn test_diff_stat_line(&self) -> bool { (self.state == State::CommitMeta || self.state == State::Unknown) diff --git a/src/handlers/git_show_file.rs b/src/handlers/git_show_file.rs index ff670eb..2e5330d 100644 --- a/src/handlers/git_show_file.rs +++ b/src/handlers/git_show_file.rs @@ -2,7 +2,7 @@ use crate::delta::{State, StateMachine}; use crate::paint::{BgShouldFill, StyleSectionSpecifier}; use crate::utils::process; -impl<'a> StateMachine<'a> { +impl StateMachine<'_> { // If this is a line of `git show $revision:/path/to/file.ext` output then // syntax-highlight it as language `ext`. pub fn handle_git_show_file_line(&mut self) -> std::io::Result<bool> { diff --git a/src/handlers/grep.rs b/src/handlers/grep.rs index 3f0fb42..69e7957 100644 --- a/src/handlers/grep.rs +++ b/src/handlers/grep.rs @@ -27,7 +27,7 @@ pub struct GrepLine<'b> { pub submatches: Option<Vec<(usize, usize)>>, } -impl<'b> GrepLine<'b> { +impl GrepLine<'_> { fn expand_tabs(&mut self, tab_cfg: &tabs::TabCfg) { let old_len = self.code.len(); self.code = tabs::expand(&self.code, tab_cfg).into(); @@ -79,7 +79,7 @@ impl LineType { } } -impl<'a> StateMachine<'a> { +impl StateMachine<'_> { // If this is a line of grep output then render it accordingly. pub fn handle_grep_line(&mut self) -> std::io::Result<bool> { self.painter.emit()?; diff --git a/src/handlers/hunk.rs b/src/handlers/hunk.rs index d485386..073ce90 100644 --- a/src/handlers/hunk.rs +++ b/src/handlers/hunk.rs @@ -40,7 +40,7 @@ fn compute_is_word_diff() -> bool { } } -impl<'a> StateMachine<'a> { +impl StateMachine<'_> { #[inline] fn test_hunk_line(&self) -> bool { matches!( diff --git a/src/handlers/hunk_header.rs b/src/handlers/hunk_header.rs index 0e94077..34f6d86 100644 --- a/src/handlers/hunk_header.rs +++ b/src/handlers/hunk_header.rs @@ -98,7 +98,7 @@ impl AmbiguousDiffMinusCounter { } } -impl<'a> StateMachine<'a> { +impl StateMachine<'_> { #[inline] fn test_hunk_header_line(&self) -> bool { self.line.starts_with("@@") && diff --git a/src/handlers/merge_conflict.rs b/src/handlers/merge_conflict.rs index f06364b..60b545c 100644 --- a/src/handlers/merge_conflict.rs +++ b/src/handlers/merge_conflict.rs @@ -28,7 +28,7 @@ pub type MergeConflictLines = MergeConflictCommits<Vec<(String, State)>>; pub type MergeConflictCommitNames = MergeConflictCommits<Option<String>>; -impl<'a> StateMachine<'a> { +impl StateMachine<'_> { pub fn handle_merge_conflict_line(&mut self) -> std::io::Result<bool> { use DiffType::*; use MergeConflictCommit::*; diff --git a/src/handlers/mod.rs b/src/handlers/mod.rs index fcbabef..40bdf68 100644 --- a/src/handlers/mod.rs +++ b/src/handlers/mod.rs @@ -17,7 +17,7 @@ pub mod submodule; use crate::delta::{State, StateMachine}; -impl<'a> StateMachine<'a> { +impl StateMachine<'_> { pub fn handle_additional_cases(&mut self, to_state: State) -> std::io::Result<bool> { let mut handled_line = false; diff --git a/src/handlers/submodule.rs b/src/handlers/submodule.rs index fbfc33a..166024e 100644 --- a/src/handlers/submodule.rs +++ b/src/handlers/submodule.rs @@ -3,7 +3,7 @@ use regex::Regex; use crate::delta::{State, StateMachine}; -impl<'a> StateMachine<'a> { +impl StateMachine<'_> { #[inline] fn test_submodule_log(&self) -> bool { self.line.starts_with("Submodule ") |
