Skip to content

fix: don't allow empty string in range, test coverage improvements #335

fix: don't allow empty string in range, test coverage improvements

fix: don't allow empty string in range, test coverage improvements #335

GitHub Actions / clippy succeeded Oct 27, 2023 in 0s

clippy

21 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 21
Note 0
Help 0

Versions

  • rustc 1.73.0 (cc66ad468 2023-10-03)
  • cargo 1.73.0 (9c4383fb5 2023-08-26)
  • clippy 0.1.73 (cc66ad4 2023-10-03)

Annotations

Check warning on line 54 in pomsky-lib/src/exprs/literal.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary hashes around raw string literal

warning: unnecessary hashes around raw string literal
  --> pomsky-lib/src/exprs/literal.rs:54:29
   |
54 |         '$' => buf.push_str(r#"\$"#),
   |                             ^^^^^^^ help: try: `r"\$"`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes

Check warning on line 53 in pomsky-lib/src/exprs/literal.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary hashes around raw string literal

warning: unnecessary hashes around raw string literal
  --> pomsky-lib/src/exprs/literal.rs:53:29
   |
53 |         '^' => buf.push_str(r#"\^"#),
   |                             ^^^^^^^ help: try: `r"\^"`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes

Check warning on line 52 in pomsky-lib/src/exprs/literal.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary hashes around raw string literal

warning: unnecessary hashes around raw string literal
  --> pomsky-lib/src/exprs/literal.rs:52:29
   |
52 |         '|' => buf.push_str(r#"\|"#),
   |                             ^^^^^^^ help: try: `r"\|"`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes

Check warning on line 51 in pomsky-lib/src/exprs/literal.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary hashes around raw string literal

warning: unnecessary hashes around raw string literal
  --> pomsky-lib/src/exprs/literal.rs:51:29
   |
51 |         '?' => buf.push_str(r#"\?"#),
   |                             ^^^^^^^ help: try: `r"\?"`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes

Check warning on line 50 in pomsky-lib/src/exprs/literal.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary hashes around raw string literal

warning: unnecessary hashes around raw string literal
  --> pomsky-lib/src/exprs/literal.rs:50:29
   |
50 |         '*' => buf.push_str(r#"\*"#),
   |                             ^^^^^^^ help: try: `r"\*"`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes

Check warning on line 49 in pomsky-lib/src/exprs/literal.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary hashes around raw string literal

warning: unnecessary hashes around raw string literal
  --> pomsky-lib/src/exprs/literal.rs:49:29
   |
49 |         '+' => buf.push_str(r#"\+"#),
   |                             ^^^^^^^ help: try: `r"\+"`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes

Check warning on line 48 in pomsky-lib/src/exprs/literal.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary hashes around raw string literal

warning: unnecessary hashes around raw string literal
  --> pomsky-lib/src/exprs/literal.rs:48:29
   |
48 |         '.' => buf.push_str(r#"\."#),
   |                             ^^^^^^^ help: try: `r"\."`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes

Check warning on line 47 in pomsky-lib/src/exprs/literal.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary hashes around raw string literal

warning: unnecessary hashes around raw string literal
  --> pomsky-lib/src/exprs/literal.rs:47:29
   |
47 |         ')' => buf.push_str(r#"\)"#),
   |                             ^^^^^^^ help: try: `r"\)"`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes

Check warning on line 46 in pomsky-lib/src/exprs/literal.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary hashes around raw string literal

warning: unnecessary hashes around raw string literal
  --> pomsky-lib/src/exprs/literal.rs:46:29
   |
46 |         '(' => buf.push_str(r#"\("#),
   |                             ^^^^^^^ help: try: `r"\("`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes

Check warning on line 45 in pomsky-lib/src/exprs/literal.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary hashes around raw string literal

warning: unnecessary hashes around raw string literal
  --> pomsky-lib/src/exprs/literal.rs:45:29
   |
45 |         '}' => buf.push_str(r#"\}"#),
   |                             ^^^^^^^ help: try: `r"\}"`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes

Check warning on line 44 in pomsky-lib/src/exprs/literal.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary hashes around raw string literal

warning: unnecessary hashes around raw string literal
  --> pomsky-lib/src/exprs/literal.rs:44:29
   |
44 |         '{' => buf.push_str(r#"\{"#),
   |                             ^^^^^^^ help: try: `r"\{"`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes

Check warning on line 43 in pomsky-lib/src/exprs/literal.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary hashes around raw string literal

warning: unnecessary hashes around raw string literal
  --> pomsky-lib/src/exprs/literal.rs:43:29
   |
43 |         ']' => buf.push_str(r#"\]"#),
   |                             ^^^^^^^ help: try: `r"\]"`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes

Check warning on line 42 in pomsky-lib/src/exprs/literal.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary hashes around raw string literal

warning: unnecessary hashes around raw string literal
  --> pomsky-lib/src/exprs/literal.rs:42:29
   |
42 |         '[' => buf.push_str(r#"\["#),
   |                             ^^^^^^^ help: try: `r"\["`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes

Check warning on line 41 in pomsky-lib/src/exprs/literal.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary hashes around raw string literal

warning: unnecessary hashes around raw string literal
  --> pomsky-lib/src/exprs/literal.rs:41:30
   |
41 |         '\\' => buf.push_str(r#"\\"#),
   |                              ^^^^^^^ help: try: `r"\\"`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes

Check warning on line 32 in pomsky-lib/src/exprs/literal.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary hashes around raw string literal

warning: unnecessary hashes around raw string literal
  --> pomsky-lib/src/exprs/literal.rs:32:66
   |
32 |         '|' if flavor != RegexFlavor::JavaScript => buf.push_str(r#"\|"#),
   |                                                                  ^^^^^^^ help: try: `r"\|"`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes

Check warning on line 31 in pomsky-lib/src/exprs/literal.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary hashes around raw string literal

warning: unnecessary hashes around raw string literal
  --> pomsky-lib/src/exprs/literal.rs:31:66
   |
31 |         '&' if flavor != RegexFlavor::JavaScript => buf.push_str(r#"\&"#),
   |                                                                  ^^^^^^^ help: try: `r"\&"`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes

Check warning on line 30 in pomsky-lib/src/exprs/literal.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary hashes around raw string literal

warning: unnecessary hashes around raw string literal
  --> pomsky-lib/src/exprs/literal.rs:30:41
   |
30 |         '^' if is_first => buf.push_str(r#"\^"#),
   |                                         ^^^^^^^ help: try: `r"\^"`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes

Check warning on line 29 in pomsky-lib/src/exprs/literal.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary hashes around raw string literal

warning: unnecessary hashes around raw string literal
  --> pomsky-lib/src/exprs/literal.rs:29:29
   |
29 |         ']' => buf.push_str(r#"\]"#),
   |                             ^^^^^^^ help: try: `r"\]"`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes

Check warning on line 28 in pomsky-lib/src/exprs/literal.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary hashes around raw string literal

warning: unnecessary hashes around raw string literal
  --> pomsky-lib/src/exprs/literal.rs:28:29
   |
28 |         '[' => buf.push_str(r#"\["#),
   |                             ^^^^^^^ help: try: `r"\["`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes

Check warning on line 27 in pomsky-lib/src/exprs/literal.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary hashes around raw string literal

warning: unnecessary hashes around raw string literal
  --> pomsky-lib/src/exprs/literal.rs:27:29
   |
27 |         '-' => buf.push_str(r#"\-"#),
   |                             ^^^^^^^ help: try: `r"\-"`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes

Check warning on line 26 in pomsky-lib/src/exprs/literal.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unnecessary hashes around raw string literal

warning: unnecessary hashes around raw string literal
  --> pomsky-lib/src/exprs/literal.rs:26:30
   |
26 |         '\\' => buf.push_str(r#"\\"#),
   |                              ^^^^^^^ help: try: `r"\\"`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes
   = note: `#[warn(clippy::needless_raw_string_hashes)]` on by default