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#"'*--set=[Override <VARIABLE> with <VALUE>]' \"#,
r#"'*--set[Override <VARIABLE> with <VALUE>]: :_just_variables' \"#,
r"'*--set=[Override <VARIABLE> with <VALUE>]' \",
r"'*--set[Override <VARIABLE> with <VALUE>]: :_just_variables' \",
),
(
r#"'-s+[Show information about <RECIPE>]' \
'--show=[Show information about <RECIPE>]' \"#,
r#"'-s+[Show information about <RECIPE>]: :_just_commands' \
'--show=[Show information about <RECIPE>]: :_just_commands' \"#,
r"'-s+[Show information about <RECIPE>]' \
'--show=[Show information about <RECIPE>]' \",
r"'-s+[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 \

View File

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

View File

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

View File

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

View File

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