Placate clippy (#1689)

This commit is contained in:
Casey Rodarmor 2023-10-08 19:34:05 -07:00 committed by GitHub
parent 4b5dd245fa
commit 72e5b17242
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 27 deletions

View File

@ -17,14 +17,14 @@ pub(crate) const ZSH_COMPLETION_REPLACEMENTS: &[(&str, &str)] = &[
r#" local common=("#, r#" local common=("#,
), ),
( (
r#"'*--set=[Override <VARIABLE> with <VALUE>]' \"#, r"'*--set=[Override <VARIABLE> with <VALUE>]' \",
r#"'*--set[Override <VARIABLE> with <VALUE>]: :_just_variables' \"#, r"'*--set[Override <VARIABLE> with <VALUE>]: :_just_variables' \",
), ),
( (
r#"'-s+[Show information about <RECIPE>]' \ r"'-s+[Show information about <RECIPE>]' \
'--show=[Show information about <RECIPE>]' \"#, '--show=[Show information about <RECIPE>]' \",
r#"'-s+[Show information about <RECIPE>]: :_just_commands' \ r"'-s+[Show information about <RECIPE>]: :_just_commands' \
'--show=[Show information about <RECIPE>]: :_just_commands' \"#, '--show=[Show information about <RECIPE>]: :_just_commands' \",
), ),
( (
"'::ARGUMENTS -- Overrides and recipe(s) to run, defaulting to the first recipe in the \ "'::ARGUMENTS -- Overrides and recipe(s) to run, defaulting to the first recipe in the \

View File

@ -745,13 +745,13 @@ foo +a="Hello":
test! { test! {
parse_raw_string_default, parse_raw_string_default,
r#" r"
foo a='b\t': foo a='b\t':
"#, ",
r#"foo a='b\t':"#, r"foo a='b\t':",
} }
test! { test! {

View File

@ -1420,23 +1420,23 @@ mod tests {
test! { test! {
name: indented_backtick, name: indented_backtick,
text: r#" text: r"
x := ``` x := ```
\tfoo\t \tfoo\t
\tbar\n \tbar\n
``` ```
"#, ",
tree: (justfile (assignment x (backtick "\\tfoo\\t\n\\tbar\\n\n"))), tree: (justfile (assignment x (backtick "\\tfoo\\t\n\\tbar\\n\n"))),
} }
test! { test! {
name: indented_backtick_no_dedent, name: indented_backtick_no_dedent,
text: r#" text: r"
x := ``` x := ```
\tfoo\t \tfoo\t
\tbar\n \tbar\n
``` ```
"#, ",
tree: (justfile (assignment x (backtick "\\tfoo\\t\n \\tbar\\n\n"))), tree: (justfile (assignment x (backtick "\\tfoo\\t\n \\tbar\\n\n"))),
} }
@ -1475,12 +1475,12 @@ mod tests {
test! { test! {
name: parse_raw_string_default, name: parse_raw_string_default,
text: r#" text: r"
foo a='b\t': foo a='b\t':
"#, ",
tree: (justfile (recipe foo (params (a "b\\t")))), tree: (justfile (recipe foo (params (a "b\\t")))),
} }

View File

@ -1000,36 +1000,36 @@ a Z="\t z":
test! { test! {
name: line_continuation_with_space, name: line_continuation_with_space,
justfile: r#" justfile: r"
foo: foo:
echo a\ echo a\
b \ b \
c c
"#, ",
stdout: "ab c\n", stdout: "ab c\n",
stderr: "echo ab c\n", stderr: "echo ab c\n",
} }
test! { test! {
name: line_continuation_with_quoted_space, name: line_continuation_with_quoted_space,
justfile: r#" justfile: r"
foo: foo:
echo 'a\ echo 'a\
b \ b \
c' c'
"#, ",
stdout: "ab c\n", stdout: "ab c\n",
stderr: "echo 'ab c'\n", stderr: "echo 'ab c'\n",
} }
test! { test! {
name: line_continuation_no_space, name: line_continuation_no_space,
justfile: r#" justfile: r"
foo: foo:
echo a\ echo a\
b\ b\
c c
"#, ",
stdout: "abc\n", stdout: "abc\n",
stderr: "echo abc\n", stderr: "echo abc\n",
} }

View File

@ -318,7 +318,7 @@ test! {
test! { test! {
name: indented_raw_string_escapes, name: indented_raw_string_escapes,
justfile: r#" justfile: r"
a := ''' a := '''
foo\n foo\n
bar bar
@ -326,11 +326,11 @@ test! {
@default: @default:
printf %s '{{a}}' printf %s '{{a}}'
"#, ",
stdout: r#" stdout: r"
foo\n foo\n
bar bar
"#, ",
} }
test! { test! {
@ -353,7 +353,7 @@ test! {
test! { test! {
name: indented_backtick_string_escapes, name: indented_backtick_string_escapes,
justfile: r#" justfile: r"
a := ``` a := ```
printf %s ' printf %s '
foo\n foo\n
@ -363,7 +363,7 @@ test! {
@default: @default:
printf %s '{{a}}' printf %s '{{a}}'
"#, ",
stdout: "\n\nfoo\\n\nbar", stdout: "\n\nfoo\\n\nbar",
} }