summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCasey Rodarmor <casey@rodarmor.com>2023-10-08 19:34:05 -0700
committerGitHub <noreply@github.com>2023-10-09 02:34:05 +0000
commit72e5b1724227ee2519a048c0ab8fbc106c65d55f (patch)
treeb61ec917561900894e58f35ba806260844da64f9
parent4b5dd245fa040377312eb65c1312a980c0634a91 (diff)
Placate clippy (#1689)
-rw-r--r--src/completions.rs12
-rw-r--r--src/justfile.rs6
-rw-r--r--src/parser.rs12
-rw-r--r--tests/misc.rs12
-rw-r--r--tests/string.rs12
5 files changed, 27 insertions, 27 deletions
diff --git a/src/completions.rs b/src/completions.rs
index 696f57c4..3d805ff0 100644
--- a/src/completions.rs
+++ b/src/completions.rs
@@ -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 \
diff --git a/src/justfile.rs b/src/justfile.rs
index a8ae4062..ee46e335 100644
--- a/src/justfile.rs
+++ b/src/justfile.rs
@@ -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! {
diff --git a/src/parser.rs b/src/parser.rs
index 08045ef5..04c4a9d1 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -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")))),
}
diff --git a/tests/misc.rs b/tests/misc.rs
index df6f1ca5..2c64d5d2 100644
--- a/tests/misc.rs
+++ b/tests/misc.rs
@@ -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",
}
diff --git a/tests/string.rs b/tests/string.rs
index a7e08942..c932634f 100644
--- a/tests/string.rs
+++ b/tests/string.rs
@@ -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",
}