Skip to content

Merge pull request #797 from portier/dependabot/cargo/toml-0.8.0 #1396

Merge pull request #797 from portier/dependabot/cargo/toml-0.8.0

Merge pull request #797 from portier/dependabot/cargo/toml-0.8.0 #1396

GitHub Actions / clippy succeeded Sep 18, 2023 in 1s

clippy

1 warning

Details

Results

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

Versions

  • rustc 1.72.0 (5680fa18f 2023-08-23)
  • cargo 1.72.0 (103a7ff2e 2023-08-15)
  • clippy 0.1.72 (5680fa1 2023-08-23)

Annotations

Check warning on line 465 in src/web.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless use of `vec!`

warning: useless use of `vec!`
   --> src/web.rs:459:15
    |
459 |       let csp = vec![
    |  _______________^
460 | |         "sandbox allow-scripts allow-forms",
461 | |         "default-src 'none'",
462 | |         "script-src 'self'",
463 | |         "style-src 'self'",
464 | |         "form-action *",
465 | |     ]
    | |_____^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
    = note: `#[warn(clippy::useless_vec)]` on by default
help: you can use an array directly
    |
459 ~     let csp = ["sandbox allow-scripts allow-forms",
460 +         "default-src 'none'",
461 +         "script-src 'self'",
462 +         "style-src 'self'",
463 +         "form-action *"]
    |