Feat/graphql api #9
Annotations
8 errors and 1 warning
Run clippy action:
indexer/src/neo4j_utils.rs#L1
error: unused import: `std::collections::HashMap`
--> indexer/src/neo4j_utils.rs:1:5
|
1 | use std::collections::HashMap;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_imports)]`
|
Run clippy action:
indexer/src/kg/client.rs#L456
error: the borrowed expression implements the required traits
--> indexer/src/kg/client.rs:456:72
|
456 | let bolt_data = match serde_value_to_bolt(serde_json::to_value(&relation.attributes())?) {
| ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `relation.attributes()`
|
= 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)]`
|
Run clippy action:
indexer/src/kg/client.rs#L504
error: the borrowed expression implements the required traits
--> indexer/src/kg/client.rs:504:72
|
504 | let bolt_data = match serde_value_to_bolt(serde_json::to_value(&node.attributes())?) {
| ^^^^^^^^^^^^^^^^^^ help: change this to: `node.attributes()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
Run clippy action:
indexer/src/kg/client.rs#L537
error: question mark operator is useless here
--> indexer/src/kg/client.rs:537:9
|
537 | / Ok(self.neo4j
538 | | .execute(query)
539 | | .await?
540 | | .next()
... |
545 | | })
546 | | .transpose()?)
| |__________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
= note: `-D clippy::needless-question-mark` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_question_mark)]`
help: try removing question mark and `Ok()`
|
537 ~ self.neo4j
538 + .execute(query)
539 + .await?
540 + .next()
541 + .await?
542 + .map(|row| {
543 + tracing::info!("Row: {:?}", row.to::<neo4rs::Node>());
544 + Ok::<_, DatabaseError>(Node::<T>::try_from(row.to::<neo4rs::Node>()?)?)
545 + })
546 + .transpose()
|
|
Run clippy action:
indexer/src/kg/client.rs#L553
error: question mark operator is useless here
--> indexer/src/kg/client.rs:553:9
|
553 | / Ok(self.neo4j
554 | | .execute(query)
555 | | .await?
556 | | .into_stream_as::<neo4rs::Node>()
... |
561 | | .try_collect::<Vec<_>>()
562 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: try removing question mark and `Ok()`
|
553 ~ self.neo4j
554 + .execute(query)
555 + .await?
556 + .into_stream_as::<neo4rs::Node>()
557 + .map_err(DatabaseError::from)
558 + .and_then(|neo4j_node| async move {
559 + Ok(Node::<T>::try_from(neo4j_node)?)
560 + })
561 + .try_collect::<Vec<_>>()
562 + .await
|
|
Run clippy action:
indexer/src/kg/client.rs#L605
error: question mark operator is useless here
--> indexer/src/kg/client.rs:605:9
|
605 | / Ok(self.neo4j
606 | | .execute(query)
607 | | .await?
608 | | .next()
... |
613 | | })
614 | | .transpose()?)
| |__________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: try removing question mark and `Ok()`
|
605 ~ self.neo4j
606 + .execute(query)
607 + .await?
608 + .next()
609 + .await?
610 + .map(|row| {
611 + tracing::info!("Row: {:?}", row.to::<neo4rs::Relation>());
612 + Ok::<_, DatabaseError>(Relation::<T>::try_from(row.to::<neo4rs::Relation>()?)?)
613 + })
614 + .transpose()
|
|
Run clippy action:
indexer/src/kg/client.rs#L655
error: question mark operator is useless here
--> indexer/src/kg/client.rs:655:9
|
655 | / Ok(self.neo4j
656 | | .execute(query)
657 | | .await?
658 | | .into_stream_as::<neo4rs::Relation>()
... |
663 | | .try_collect::<Vec<_>>()
664 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: try removing question mark and `Ok()`
|
655 ~ self.neo4j
656 + .execute(query)
657 + .await?
658 + .into_stream_as::<neo4rs::Relation>()
659 + .map_err(DatabaseError::from)
660 + .and_then(|neo4j_rel| async move {
661 + Ok(Relation::<T>::try_from(neo4j_rel)?)
662 + })
663 + .try_collect::<Vec<_>>()
664 + .await
|
|
Run clippy action
Clippy has exited with exit code 101
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading