mirror of
https://github.com/TECHNOFAB11/tmux-copyrat.git
synced 2025-12-12 16:10:07 +01:00
chore(clippy): obey nightly clippy
This commit is contained in:
parent
0d0b0a817f
commit
6f2f7678eb
2 changed files with 3 additions and 3 deletions
|
|
@ -113,7 +113,7 @@ fn find_raw_spans<'a>(
|
|||
// the start and end byte indices with respect to the chunk.
|
||||
let chunk_matches = all_regexes
|
||||
.iter()
|
||||
.filter_map(|(&ref pat_name, reg)| {
|
||||
.filter_map(|(pat_name, reg)| {
|
||||
reg.find_iter(chunk)
|
||||
.next()
|
||||
.map(|reg_match| (pat_name, reg, reg_match))
|
||||
|
|
@ -131,7 +131,7 @@ fn find_raw_spans<'a>(
|
|||
.unwrap();
|
||||
|
||||
// Never hint or break ansi color sequences.
|
||||
if *pat_name != "ansi_colors" {
|
||||
if **pat_name != "ansi_colors" {
|
||||
let text = reg_match.as_str();
|
||||
|
||||
// All patterns must have a capturing group: try obtaining
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ impl<'a> ViewController<'a> {
|
|||
let line_width = self.term_width as usize;
|
||||
|
||||
let new_pos_x = pos_x % line_width;
|
||||
let new_pos_y = self.wrapped_lines[pos_y as usize].pos_y + pos_x / line_width;
|
||||
let new_pos_y = self.wrapped_lines[pos_y].pos_y + pos_x / line_width;
|
||||
|
||||
(new_pos_x, new_pos_y)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue