Bump pnpm/action-setup from 2 to 4 (#297) #12
ci.yaml
on: push
Typecheck
15s
Format & Lint (Biome)
13s
Format (Cargo)
11s
Clippy
24s
Annotations
3 errors and 10 warnings
Format & Lint (Biome)
Process completed with exit code 1.
|
mismatched types:
examples/axum/src/main.rs#L24
error[E0308]: mismatched types
--> examples/axum/src/main.rs:24:13
|
22 | .nest(
| ---- arguments to this method are incorrect
23 | "/rspc",
24 | rspc_axum::Endpoint::new(router.clone(), ctx_fn.clone()),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Router<_>`, found `Endpoint<Context>`
|
= note: expected struct `axum::Router<_>`
found struct `rspc_axum::Endpoint<api::Context>`
note: method defined here
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/axum-0.7.5/src/routing/mod.rs:189:12
|
189 | pub fn nest(self, path: &str, router: Router<S>) -> Self {
| ^^^^
|
Clippy
Clippy had exited with the 101 exit code
|
trait `procedure::exec_input::InputValueInner<'b>` is more private than the item `procedure::exec_input::ProcedureExecInput::<'a, 'b, T>::new`:
rspc/src/procedure/exec_input.rs#L54
warning: trait `procedure::exec_input::InputValueInner<'b>` is more private than the item `procedure::exec_input::ProcedureExecInput::<'a, 'b, T>::new`
--> rspc/src/procedure/exec_input.rs:54:5
|
54 | pub(crate) fn new(value: &'a mut dyn InputValueInner<'b>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated function `procedure::exec_input::ProcedureExecInput::<'a, 'b, T>::new` is reachable at visibility `pub(crate)`
|
note: but trait `procedure::exec_input::InputValueInner<'b>` is only usable at visibility `pub(procedure)`
--> rspc/src/procedure/exec_input.rs:10:1
|
10 | pub(super) trait InputValueInner<'de> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: `#[warn(private_interfaces)]` on by default
|
variant `Static` is never constructed:
rspc/src/procedure/meta.rs#L23
warning: variant `Static` is never constructed
--> rspc/src/procedure/meta.rs:23:5
|
22 | enum ProcedureName {
| ------------- variant in this enum
23 | Static(&'static str),
| ^^^^^^
|
= note: `ProcedureName` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
|
package `rspc` is missing `package.readme` metadata:
rspc/src/lib.rs#L1
warning: package `rspc` is missing `package.readme` metadata
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata
= note: `-W clippy::cargo-common-metadata` implied by `-W clippy::cargo`
= help: to override `-W clippy::cargo` add `#[allow(clippy::cargo_common_metadata)]`
|
package `rspc-axum` is missing `package.readme` metadata:
rspc/src/lib.rs#L1
warning: package `rspc-axum` is missing `package.readme` metadata
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata
|
module has the same name as its containing module:
rspc/src/middleware.rs#L1
warning: module has the same name as its containing module
--> rspc/src/middleware.rs:1:1
|
1 | mod middleware;
| ^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception
= note: `-W clippy::module-inception` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::module_inception)]`
|
very complex type used. Consider factoring parts into `type` definitions:
rspc/src/middleware/middleware.rs#L90
warning: very complex type used. Consider factoring parts into `type` definitions
--> rspc/src/middleware/middleware.rs:90:23
|
90 | pub(crate) setup: Option<Box<dyn FnOnce(&mut State, ProcedureMeta) + 'static>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
= note: `-W clippy::type-complexity` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::type_complexity)]`
|
very complex type used. Consider factoring parts into `type` definitions:
rspc/src/middleware/middleware.rs#L91
warning: very complex type used. Consider factoring parts into `type` definitions
--> rspc/src/middleware/middleware.rs:91:23
|
91 | pub(crate) inner: Box<
| _______________________^
92 | | dyn FnOnce(
93 | | MiddlewareHandler<TError, TNextCtx, TNextInput, TNextResult>,
94 | | ) -> MiddlewareHandler<TError, TThisCtx, TThisInput, TThisResult>,
95 | | >,
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
|
very complex type used. Consider factoring parts into `type` definitions:
rspc/src/procedure/builder.rs#L14
warning: very complex type used. Consider factoring parts into `type` definitions
--> rspc/src/procedure/builder.rs:14:23
|
14 | pub(super) build: Box<
| _______________________^
15 | | dyn FnOnce(
16 | | ProcedureKind,
17 | | Vec<Box<dyn FnOnce(&mut State, ProcedureMeta) + 'static>>,
18 | | MiddlewareHandler<TError, TNextCtx, TInput, TResult>,
19 | | ) -> UnbuiltProcedure<TCtx>,
20 | | >,
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
|
methods called `into_*` usually take `self` by value:
rspc/src/procedure/exec_input.rs#L11
warning: methods called `into_*` usually take `self` by value
--> rspc/src/procedure/exec_input.rs:11:26
|
11 | fn into_deserializer(&mut self) -> Option<&mut dyn erased_serde::Deserializer<'de>>;
| ^^^^^^^^^
|
= help: consider choosing a less ambiguous name
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
= note: `-W clippy::wrong-self-convention` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::wrong_self_convention)]`
|
methods called `into_*` usually take `self` by value:
rspc/src/procedure/exec_input.rs#L21
warning: methods called `into_*` usually take `self` by value
--> rspc/src/procedure/exec_input.rs:21:21
|
21 | fn into_dyn_any(&mut self) -> Option<&mut dyn Any> {
| ^^^^^^^^^
|
= help: consider choosing a less ambiguous name
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
|