Skip to content

Commit

Permalink
Fix lints for 1.72
Browse files Browse the repository at this point in the history
  • Loading branch information
neunenak committed Aug 28, 2023
1 parent 5b849d7 commit 1f5956b
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
12 changes: 6 additions & 6 deletions src/completions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
6 changes: 3 additions & 3 deletions src/justfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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! {
Expand Down
12 changes: 6 additions & 6 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))),
}

Expand Down Expand Up @@ -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")))),
}

Expand Down
12 changes: 6 additions & 6 deletions tests/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
Expand Down
12 changes: 6 additions & 6 deletions tests/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,19 +318,19 @@ test! {

test! {
name: indented_raw_string_escapes,
justfile: r#"
justfile: r"
a := '''
foo\n
bar
'''
@default:
printf %s '{{a}}'
"#,
stdout: r#"
",
stdout: r"
foo\n
bar
"#,
",
}

test! {
Expand All @@ -353,7 +353,7 @@ test! {

test! {
name: indented_backtick_string_escapes,
justfile: r#"
justfile: r"
a := ```
printf %s '
foo\n
Expand All @@ -363,7 +363,7 @@ test! {
@default:
printf %s '{{a}}'
"#,
",
stdout: "\n\nfoo\\n\nbar",
}

Expand Down

0 comments on commit 1f5956b

Please sign in to comment.