Feat/graphql api #9
ci.yaml
on: pull_request
stable / fmt
6s
stable / clippy
29s
stable / test
17s
stable / doc
21s
Annotations
13 errors and 14 warnings
stable / fmt
Process completed with exit code 1.
|
stable / test:
indexer/src/neo4j_utils.rs#L1
unused import: `std::collections::HashMap`
|
stable / test
The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
|
stable / doc:
indexer/src/neo4j_utils.rs#L1
unused import: `std::collections::HashMap`
|
stable / doc
Process completed with exit code 101.
|
unused import: `std::collections::HashMap`:
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)]`
|
the borrowed expression implements the required traits:
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)]`
|
the borrowed expression implements the required traits:
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
|
question mark operator is useless here:
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()
|
|
question mark operator is useless here:
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
|
|
question mark operator is useless here:
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()
|
|
question mark operator is useless here:
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
|
|
stable / clippy
Clippy has exited with exit code 101
|
stable / fmt
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
stable / fmt:
api/src/lib.rs#L1
Diff in /home/runner/work/kg-node/kg-node/api/src/lib.rs
|
stable / fmt:
api/src/query_mapping.rs#L19
Diff in /home/runner/work/kg-node/kg-node/api/src/query_mapping.rs
|
stable / fmt:
api/src/query_mapping.rs#L26
Diff in /home/runner/work/kg-node/kg-node/api/src/query_mapping.rs
|
stable / fmt:
api/src/query_mapping.rs#L45
Diff in /home/runner/work/kg-node/kg-node/api/src/query_mapping.rs
|
stable / fmt:
api/src/query_mapping.rs#L92
Diff in /home/runner/work/kg-node/kg-node/api/src/query_mapping.rs
|
stable / fmt:
api/src/query_mapping.rs#L99
Diff in /home/runner/work/kg-node/kg-node/api/src/query_mapping.rs
|
stable / fmt:
api/src/main.rs#L9
Diff in /home/runner/work/kg-node/kg-node/api/src/main.rs
|
stable / fmt:
api/src/main.rs#L23
Diff in /home/runner/work/kg-node/kg-node/api/src/main.rs
|
stable / fmt:
api/src/main.rs#L39
Diff in /home/runner/work/kg-node/kg-node/api/src/main.rs
|
stable / fmt:
api/src/main.rs#L124
Diff in /home/runner/work/kg-node/kg-node/api/src/main.rs
|
stable / test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
stable / doc
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
stable / clippy
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|