Skip to content

Feat/backend comparison/persistence #20

Feat/backend comparison/persistence

Feat/backend comparison/persistence #20

GitHub Actions / clippy failed Nov 21, 2023 in 1s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (1)

backend-comparison/src/persistence/base.rs|71 col 33| error: the borrowed expression implements the required traits
--> backend-comparison/src/persistence/base.rs:71:33
|
71 | let file = File::create(&path).expect("Unable to create backend comparison file");
| ^^^^^ help: change this to: path
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: -D clippy::needless-borrows-for-generic-args implied by -D warnings
= help: to override -D warnings add #[allow(clippy::needless_borrows_for_generic_args)]

Filtered Findings (0)

Annotations

Check failure on line 71 in backend-comparison/src/persistence/base.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] backend-comparison/src/persistence/base.rs#L71

error: the borrowed expression implements the required traits
  --> backend-comparison/src/persistence/base.rs:71:33
   |
71 |         let file = File::create(&path).expect("Unable to create backend comparison file");
   |                                 ^^^^^ help: change this to: `path`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
   = note: `-D clippy::needless-borrows-for-generic-args` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::needless_borrows_for_generic_args)]`
Raw output
backend-comparison/src/persistence/base.rs:71:33:e:error: the borrowed expression implements the required traits
  --> backend-comparison/src/persistence/base.rs:71:33
   |
71 |         let file = File::create(&path).expect("Unable to create backend comparison file");
   |                                 ^^^^^ help: change this to: `path`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
   = note: `-D clippy::needless-borrows-for-generic-args` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::needless_borrows_for_generic_args)]`


__END__