mirror of
https://github.com/nushell/nushell
synced 2024-12-27 21:43:09 +00:00
clippy correcgtions
This commit is contained in:
parent
4b8ba29cdb
commit
9c98783917
2 changed files with 2 additions and 2 deletions
|
@ -209,7 +209,7 @@ pub fn report_parsing_error(
|
||||||
Diagnostic::error()
|
Diagnostic::error()
|
||||||
.with_message("Unknown state")
|
.with_message("Unknown state")
|
||||||
.with_labels(vec![
|
.with_labels(vec![
|
||||||
Label::primary(diag_file_id, diag_range).with_message(format!("{}", name))
|
Label::primary(diag_file_id, diag_range).with_message(name.to_string())
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
ParseError::NonUtf8(span) => {
|
ParseError::NonUtf8(span) => {
|
||||||
|
|
|
@ -606,7 +606,7 @@ pub fn parse_call(
|
||||||
if spans.len() > 1 {
|
if spans.len() > 1 {
|
||||||
let test_equal = working_set.get_span_contents(spans[1]);
|
let test_equal = working_set.get_span_contents(spans[1]);
|
||||||
|
|
||||||
if test_equal == &[b'='] {
|
if test_equal == [b'='] {
|
||||||
return (
|
return (
|
||||||
garbage(Span::new(0, 0)),
|
garbage(Span::new(0, 0)),
|
||||||
Some(ParseError::UnknownState(
|
Some(ParseError::UnknownState(
|
||||||
|
|
Loading…
Reference in a new issue