Skip to content

Improve the check for the type of parser that should be used #47

Improve the check for the type of parser that should be used

Improve the check for the type of parser that should be used #47

GitHub Actions / clippy succeeded Mar 18, 2024 in 0s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (0)
Filtered Findings (1)

scripts/helper_scripts/unipept-database-rs/src/dat_parser/entry.rs|226 col 30| error: writing &mut Vec instead of &mut [_] involves a new object where a slice will do
--> src/dat_parser/entry.rs:226:30
|
226 | fn parse_db_references(data: &mut Vec, index: &mut usize) -> (Vec, Vec) {
| ^^^^^^^^^^^^^^^^ help: change this to: &mut [String]
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
= note: -D clippy::ptr-arg implied by -D warnings
= help: to override -D warnings add #[allow(clippy::ptr_arg)]