Skip to content

Commit

Permalink
Remove unnecessary hashes on raw strings
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed Jul 5, 2023
1 parent 3f77d7f commit 186d01d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions precious-integration/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ fn all_invocation_options() -> Result<()> {
let docs =
fs::read_to_string(PathBuf::from("../docs/invocation-examples.md"))?.replace("\r\n", "\n");
let docs_re = Regex::new(
r#"(?xsm)
r"(?xsm)
```toml\n
\[commands\.some-linter\]\n
(?P<config>.+?)
Expand All @@ -318,7 +318,7 @@ fn all_invocation_options() -> Result<()> {
```\n
(?P<output>.+?)
```
"#,
",
)?;

let mut count = 0;
Expand Down Expand Up @@ -500,13 +500,13 @@ fn munge_invocation_output(output_dir: PathBuf) -> Result<String> {
// println!("RAW GOT");
// println!("{got}");
let output_re = Regex::new(
r#"(?x)
r"(?x)
----\n
# We strip off the actual leading path, since on Windows this can
# end up in a different form from what we expect.
cwd\ =\ .+?[/\\]precious-testhelper-[^/\\]+?(?:[/\\](?P<cwd>.+?))?\n
(?P<cmd>some-linter)(?:\ (?P<paths>.+?)?)\n
"#,
",
)?;

#[derive(Debug)]
Expand Down

0 comments on commit 186d01d

Please sign in to comment.