mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 03:34:58 +02:00
Disallow clippy::used_underscore_binding
lint (#15988)
This commit is contained in:
committed by
GitHub
parent
29b3512494
commit
70aa7ad993
@ -17,7 +17,7 @@ pub struct NuHighlighter {
|
||||
}
|
||||
|
||||
impl Highlighter for NuHighlighter {
|
||||
fn highlight(&self, line: &str, _cursor: usize) -> StyledText {
|
||||
fn highlight(&self, line: &str, cursor: usize) -> StyledText {
|
||||
trace!("highlighting: {}", line);
|
||||
|
||||
let config = self.stack.get_config(&self.engine_state);
|
||||
@ -58,7 +58,7 @@ impl Highlighter for NuHighlighter {
|
||||
let mut output = StyledText::default();
|
||||
let mut last_seen_span = global_span_offset;
|
||||
|
||||
let global_cursor_offset = _cursor + global_span_offset;
|
||||
let global_cursor_offset = cursor + global_span_offset;
|
||||
let matching_brackets_pos = find_matching_brackets(
|
||||
line,
|
||||
&working_set,
|
||||
|
Reference in New Issue
Block a user