Add changelog entry #696
clippy
9 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 9 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.75.0 (82e1608df 2023-12-21)
- cargo 1.75.0 (1d8b05cdd 2023-11-20)
- clippy 0.1.75 (82e1608 2023-12-21)
Annotations
Check warning on line 26 in capi/src/data.rs
github-actions / clippy
creating a `Box` from a void raw pointer
warning: creating a `Box` from a void raw pointer
--> capi/src/data.rs:26:15
|
26 | let ptr = Box::from_raw(ptr);
| ^^^^^^^^^^^^^^^^^^
|
help: cast this to a pointer of the appropriate type
--> capi/src/data.rs:26:29
|
26 | let ptr = Box::from_raw(ptr);
| ^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_raw_with_void_ptr
= note: `#[warn(clippy::from_raw_with_void_ptr)]` on by default
Check warning on line 143 in graphannis/src/annis/db/sort_matches.rs
github-actions / clippy
this function has too many arguments (8/7)
warning: this function has too many arguments (8/7)
--> graphannis/src/annis/db/sort_matches.rs:134:1
|
134 | / pub fn compare_match_by_text_pos(
135 | | m1: &Match,
136 | | m2: &Match,
137 | | node_annos: &dyn NodeAnnotationStorage,
... |
142 | | cache: &mut SortCache,
143 | | ) -> Result<Ordering> {
| |_____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
Check warning on line 44 in graphannis/src/annis/db/sort_matches.rs
github-actions / clippy
this function has too many arguments (8/7)
warning: this function has too many arguments (8/7)
--> graphannis/src/annis/db/sort_matches.rs:35:1
|
35 | / pub fn compare_matchgroup_by_text_pos(
36 | | m1: &[Match],
37 | | m2: &[Match],
38 | | node_annos: &dyn NodeAnnotationStorage,
... |
43 | | cache: &mut SortCache,
44 | | ) -> Result<Ordering> {
| |_____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
Check warning on line 822 in graphannis/src/annis/db/exec/nodesearch.rs
github-actions / clippy
this function has too many arguments (8/7)
warning: this function has too many arguments (8/7)
--> graphannis/src/annis/db/exec/nodesearch.rs:813:5
|
813 | / fn new_tokensearch(
814 | | db: &'a AnnotationGraph,
815 | | val: ValueSearch<String>,
816 | | filters: Vec<MatchValueFilterFunc>,
... |
821 | | timeout: TimeoutCheck,
822 | | ) -> Result<NodeSearch<'a>> {
| |_______________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
Check warning on line 725 in graphannis/src/annis/db/exec/nodesearch.rs
github-actions / clippy
this function has too many arguments (8/7)
warning: this function has too many arguments (8/7)
--> graphannis/src/annis/db/exec/nodesearch.rs:716:5
|
716 | / fn new_annosearch_regex(
717 | | db: &'a AnnotationGraph,
718 | | qname: (Option<String>, String),
719 | | pattern: &str,
... |
724 | | timeout: TimeoutCheck,
725 | | ) -> Result<NodeSearch<'a>> {
| |_______________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
Check warning on line 621 in graphannis/src/annis/db/exec/nodesearch.rs
github-actions / clippy
this function has too many arguments (8/7)
warning: this function has too many arguments (8/7)
--> graphannis/src/annis/db/exec/nodesearch.rs:612:5
|
612 | / fn new_annosearch_exact(
613 | | db: &'a AnnotationGraph,
614 | | qname: (Option<String>, String),
615 | | val: ValueSearch<String>,
... |
620 | | timeout: TimeoutCheck,
621 | | ) -> Result<NodeSearch<'a>> {
| |_______________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
Check warning on line 1579 in graphannis/src/annis/db/corpusstorage.rs
github-actions / clippy
this function has too many arguments (8/7)
warning: this function has too many arguments (8/7)
--> graphannis/src/annis/db/corpusstorage.rs:1570:5
|
1570 | / fn create_find_iterator_for_query<'b>(
1571 | | &'b self,
1572 | | db: &'b AnnotationGraph,
1573 | | query: &'b Disjunction,
... |
1578 | | timeout: TimeoutCheck,
1579 | | ) -> Result<(FindIterator<'b>, Option<usize>)> {
| |__________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
Check warning on line 604 in graphannis/src/annis/db/aql/conjunction.rs
github-actions / clippy
this function has too many arguments (8/7)
warning: this function has too many arguments (8/7)
--> graphannis/src/annis/db/aql/conjunction.rs:592:5
|
592 | / fn add_node_to_exec_plan<'a>(
593 | | &'a self,
594 | | node_nr: usize,
595 | | g: &'a AnnotationGraph,
... |
603 | | timeout: TimeoutCheck,
604 | | ) -> Result<()> {
| |___________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: `#[warn(clippy::too_many_arguments)]` on by default
Check warning on line 472 in graphannis/src/annis/db/aql/conjunction.rs
github-actions / clippy
call to `reserve` immediately after creation
warning: call to `reserve` immediately after creation
--> graphannis/src/annis/db/aql/conjunction.rs:471:13
|
471 | / let mut family_operators: Vec<Vec<usize>> = Vec::new();
472 | | family_operators.reserve(num_new_generations + 1);
| |______________________________________________________________^ help: consider using `Vec::with_capacity(/* Space hint */)`: `let mut family_operators: Vec<Vec<usize>> = Vec::with_capacity(num_new_generations + 1);`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#reserve_after_initialization
= note: `#[warn(clippy::reserve_after_initialization)]` on by default