feat(http): add cookie feature for client #1416
clippy
21 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 21 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.84.0-nightly (a0d98ff0e 2024-10-31)
- cargo 1.84.0-nightly (e75214ea4 2024-10-25)
- clippy 0.1.84 (a0d98ff0e5 2024-10-31)
Annotations
Check warning on line 62 in benchmark/src/perf/mem.rs
github-actions / clippy
casting to the same type is unnecessary (`u64` -> `u64`)
warning: casting to the same type is unnecessary (`u64` -> `u64`)
--> benchmark/src/perf/mem.rs:62:41
|
62 | mem_usage_list.push(mem_usage as u64);
| ^^^^^^^^^^^^^^^^ help: try: `mem_usage`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `#[warn(clippy::unnecessary_cast)]` on by default
Check warning on line 65 in volo-http/src/utils/extension.rs
github-actions / clippy
the following explicit lifetimes could be elided: 's, 'cx
warning: the following explicit lifetimes could be elided: 's, 'cx
--> volo-http/src/utils/extension.rs:65:19
|
65 | async fn call<'s, 'cx>(
| ^^ ^^^
66 | &'s self,
| ^^
67 | cx: &'cx mut Cx,
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
Check warning on line 118 in volo-grpc/src/transport/client.rs
github-actions / clippy
the following explicit lifetimes could be elided: 's, 'cx
warning: the following explicit lifetimes could be elided: 's, 'cx
--> volo-grpc/src/transport/client.rs:118:19
|
118 | async fn call<'s, 'cx>(
| ^^ ^^^
119 | &'s self,
| ^^
120 | cx: &'cx mut ClientContext,
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
Check warning on line 124 in volo-grpc/src/server/service.rs
github-actions / clippy
the following explicit lifetimes could be elided: 's, 'cx
warning: the following explicit lifetimes could be elided: 's, 'cx
--> volo-grpc/src/server/service.rs:124:19
|
124 | async fn call<'s, 'cx>(
| ^^ ^^^
125 | &'s self,
| ^^
126 | cx: &'cx mut ServerContext,
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
Check warning on line 97 in volo-grpc/src/server/router.rs
github-actions / clippy
the following explicit lifetimes could be elided: 's, 'cx
warning: the following explicit lifetimes could be elided: 's, 'cx
--> volo-grpc/src/server/router.rs:97:19
|
97 | async fn call<'s, 'cx>(
| ^^ ^^^
98 | &'s self,
| ^^
99 | cx: &'cx mut ServerContext,
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
Check warning on line 38 in volo-grpc/src/layer/user_agent.rs
github-actions / clippy
the following explicit lifetimes could be elided: 's, 'cx
warning: the following explicit lifetimes could be elided: 's, 'cx
--> volo-grpc/src/layer/user_agent.rs:38:19
|
38 | async fn call<'s, 'cx>(
| ^^ ^^^
39 | &'s self,
| ^^
40 | cx: &'cx mut Cx,
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
Check warning on line 90 in volo-grpc/src/layer/loadbalance/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 's, 'cx
warning: the following explicit lifetimes could be elided: 's, 'cx
--> volo-grpc/src/layer/loadbalance/mod.rs:90:19
|
90 | async fn call<'s, 'cx>(
| ^^ ^^^
91 | &'s self,
| ^^
92 | cx: &'cx mut Cx,
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
Check warning on line 98 in volo-grpc/src/layer/grpc_timeout.rs
github-actions / clippy
the following explicit lifetimes could be elided: 's, 'cx
warning: the following explicit lifetimes could be elided: 's, 'cx
--> volo-grpc/src/layer/grpc_timeout.rs:98:19
|
98 | async fn call<'s, 'cx>(
| ^^ ^^^
99 | &'s self,
| ^^
100 | cx: &'cx mut Cx,
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
Check warning on line 27 in volo-grpc/src/layer/cross_origin.rs
github-actions / clippy
the following explicit lifetimes could be elided: 's, 'cx
warning: the following explicit lifetimes could be elided: 's, 'cx
--> volo-grpc/src/layer/cross_origin.rs:27:19
|
27 | async fn call<'s, 'cx>(
| ^^ ^^^
28 | &'s self,
| ^^
29 | cx: &'cx mut Cx,
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
Check warning on line 616 in volo-grpc/src/client/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'cx
warning: the following explicit lifetimes could be elided: 'cx
--> volo-grpc/src/client/mod.rs:616:27
|
616 | async fn call<'cx>(
| ^^^
617 | $self,
618 | $cx: &'cx mut crate::context::ClientContext,
| ^^^
...
627 | / impl_client!((self, &mut cx, req) => async move {
628 | | let has_metainfo = metainfo::METAINFO.try_with(|_| {}).is_ok();
629 | |
630 | | let mk_call = async { self.transport.call(cx, req).await };
... |
638 | | }
639 | | });
| |__- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: this warning originates in the macro `impl_client` (in Nightly builds, run with -Z macro-backtrace for more info)
Check warning on line 593 in volo-grpc/src/client/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 's, 'cx
warning: the following explicit lifetimes could be elided: 's, 'cx
--> volo-grpc/src/client/mod.rs:593:27
|
593 | async fn call<'s, 'cx>(
| ^^ ^^^
594 | &'s $self,
| ^^
595 | $cx: &'cx mut crate::context::ClientContext,
| ^^^
...
627 | / impl_client!((self, &mut cx, req) => async move {
628 | | let has_metainfo = metainfo::METAINFO.try_with(|_| {}).is_ok();
629 | |
630 | | let mk_call = async { self.transport.call(cx, req).await };
... |
638 | | }
639 | | });
| |__- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: this warning originates in the macro `impl_client` (in Nightly builds, run with -Z macro-backtrace for more info)
Check warning on line 38 in volo-grpc/src/client/meta.rs
github-actions / clippy
the following explicit lifetimes could be elided: 's, 'cx
warning: the following explicit lifetimes could be elided: 's, 'cx
--> volo-grpc/src/client/meta.rs:38:19
|
38 | async fn call<'s, 'cx>(
| ^^ ^^^
39 | &'s self,
| ^^
40 | cx: &'cx mut ClientContext,
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
Check warning on line 45 in volo-thrift/src/server/layer/biz_error.rs
github-actions / clippy
the following explicit lifetimes could be elided: 's, 'cx
warning: the following explicit lifetimes could be elided: 's, 'cx
--> volo-thrift/src/server/layer/biz_error.rs:45:19
|
45 | async fn call<'s, 'cx>(
| ^^ ^^^
46 | &'s self,
| ^^
47 | cx: &'cx mut ServerContext,
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
Check warning on line 769 in volo-thrift/src/client/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'cx
warning: the following explicit lifetimes could be elided: 'cx
--> volo-thrift/src/client/mod.rs:769:27
|
769 | async fn call<'cx>(
| ^^^
770 | $self,
771 | $cx: &'cx mut crate::context::ClientContext,
| ^^^
...
780 | / impl_client!((self, &mut cx, req) => async move {
781 | |
782 | | let has_metainfo = metainfo::METAINFO.try_with(|_| {}).is_ok();
... |
792 | | }
793 | | });
| |__- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: this warning originates in the macro `impl_client` (in Nightly builds, run with -Z macro-backtrace for more info)
Check warning on line 745 in volo-thrift/src/client/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 's, 'cx
warning: the following explicit lifetimes could be elided: 's, 'cx
--> volo-thrift/src/client/mod.rs:745:27
|
745 | async fn call<'s, 'cx>(
| ^^ ^^^
746 | &'s $self,
| ^^
747 | $cx: &'cx mut crate::context::ClientContext,
| ^^^
...
780 | / impl_client!((self, &mut cx, req) => async move {
781 | |
782 | | let has_metainfo = metainfo::METAINFO.try_with(|_| {}).is_ok();
... |
792 | | }
793 | | });
| |__- in this macro invocation
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: this warning originates in the macro `impl_client` (in Nightly builds, run with -Z macro-backtrace for more info)
Check warning on line 532 in volo-thrift/src/client/mod.rs
github-actions / clippy
the following explicit lifetimes could be elided: 's, 'cx
warning: the following explicit lifetimes could be elided: 's, 'cx
--> volo-thrift/src/client/mod.rs:532:19
|
532 | async fn call<'s, 'cx>(
| ^^ ^^^
533 | &'s self,
| ^^
534 | cx: &'cx mut ClientContext,
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
Check warning on line 23 in volo-thrift/src/client/layer/timeout.rs
github-actions / clippy
the following explicit lifetimes could be elided: 's, 'cx
warning: the following explicit lifetimes could be elided: 's, 'cx
--> volo-thrift/src/client/layer/timeout.rs:23:19
|
23 | async fn call<'s, 'cx>(
| ^^ ^^^
24 | &'s self,
| ^^
25 | cx: &'cx mut ClientContext,
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
Check warning on line 109 in volo-thrift/src/transport/pingpong/client.rs
github-actions / clippy
the following explicit lifetimes could be elided: 's, 'cx
warning: the following explicit lifetimes could be elided: 's, 'cx
--> volo-thrift/src/transport/pingpong/client.rs:109:19
|
109 | async fn call<'s, 'cx>(
| ^^ ^^^
110 | &'s self,
| ^^
111 | cx: &'cx mut ClientContext,
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
Check warning on line 127 in volo-thrift/src/transport/multiplex/client.rs
github-actions / clippy
the following explicit lifetimes could be elided: 's, 'cx
warning: the following explicit lifetimes could be elided: 's, 'cx
--> volo-thrift/src/transport/multiplex/client.rs:127:19
|
127 | async fn call<'cx, 's>(
| ^^^ ^^
128 | &'s self,
| ^^
129 | cx: &'cx mut ClientContext,
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
Check warning on line 60 in volo/src/loadbalance/layer.rs
github-actions / clippy
the following explicit lifetimes could be elided: 's, 'cx
warning: the following explicit lifetimes could be elided: 's, 'cx
--> volo/src/loadbalance/layer.rs:60:19
|
60 | async fn call<'s, 'cx>(
| ^^ ^^^
61 | &'s self,
| ^^
62 | cx: &'cx mut Cx,
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
Check warning on line 60 in volo/src/loadbalance/layer.rs
github-actions / clippy
the following explicit lifetimes could be elided: 's, 'cx
warning: the following explicit lifetimes could be elided: 's, 'cx
--> volo/src/loadbalance/layer.rs:60:19
|
60 | async fn call<'s, 'cx>(
| ^^ ^^^
61 | &'s self,
| ^^
62 | cx: &'cx mut Cx,
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default