fix(tvix/eval): fix current clippy warnings
It's been a while since the last time, so quite a lot of stuff has accumulated here. Change-Id: I0762827c197b30a917ff470fd8ae8f220f6ba247 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7597 Reviewed-by: grfn <grfn@gws.fyi> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
This commit is contained in:
parent
67d508f2ec
commit
71174f6626
17 changed files with 69 additions and 108 deletions
|
|
@ -539,8 +539,8 @@ fn spans_for_parse_errors(file: &File, errors: &[rnix::parser::ParseError]) -> V
|
|||
span,
|
||||
format!(
|
||||
"found '{}', but expected {}",
|
||||
name_for_syntax(&found),
|
||||
expected_syntax(&wanted),
|
||||
name_for_syntax(found),
|
||||
expected_syntax(wanted),
|
||||
),
|
||||
)
|
||||
}
|
||||
|
|
@ -565,7 +565,7 @@ fn spans_for_parse_errors(file: &File, errors: &[rnix::parser::ParseError]) -> V
|
|||
file.span,
|
||||
format!(
|
||||
"code ended unexpectedly, but wanted {}",
|
||||
expected_syntax(&wanted)
|
||||
expected_syntax(wanted)
|
||||
),
|
||||
)
|
||||
}
|
||||
|
|
@ -580,9 +580,8 @@ fn spans_for_parse_errors(file: &File, errors: &[rnix::parser::ParseError]) -> V
|
|||
|
||||
rnix::parser::ParseError::RecursionLimitExceeded => (
|
||||
file.span,
|
||||
format!(
|
||||
"this code exceeds the parser's recursion limit, please report a Tvix bug"
|
||||
),
|
||||
"this code exceeds the parser's recursion limit, please report a Tvix bug"
|
||||
.to_string(),
|
||||
),
|
||||
|
||||
// TODO: can rnix even still throw this? it's semantic!
|
||||
|
|
@ -727,7 +726,7 @@ impl Error {
|
|||
fn spans(&self, source: &SourceCode) -> Vec<SpanLabel> {
|
||||
match &self.kind {
|
||||
ErrorKind::ImportParseError { errors, file, .. } => {
|
||||
spans_for_parse_errors(&file, errors)
|
||||
spans_for_parse_errors(file, errors)
|
||||
}
|
||||
|
||||
ErrorKind::ParseErrors(errors) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue