fix(client): add Error::Closed for ws close #4251
clippy
32 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 32 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.83.0 (90b35a623 2024-11-26)
- cargo 1.83.0 (5ffbef321 2024-10-29)
- clippy 0.1.83 (90b35a6 2024-11-26)
Annotations
Check warning on line 397 in core/src/server/method_response.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> core/src/server/method_response.rs:397:6
|
397 | impl<'a, T> From<ErrorCode> for ResponsePayload<'a, T>
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
397 - impl<'a, T> From<ErrorCode> for ResponsePayload<'a, T>
397 + impl<T> From<ErrorCode> for ResponsePayload<'_, T>
|
Check warning on line 64 in core/src/server/helpers.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> core/src/server/helpers.rs:64:6
|
64 | impl<'a> io::Write for &'a mut BoundedWriter {
| ^^ ^^
|
= 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
help: elide the lifetimes
|
64 - impl<'a> io::Write for &'a mut BoundedWriter {
64 + impl io::Write for &mut BoundedWriter {
|
Check warning on line 107 in types/src/error.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> types/src/error.rs:107:6
|
107 | impl<'a> From<ErrorCode> for ErrorObject<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
107 - impl<'a> From<ErrorCode> for ErrorObject<'a> {
107 + impl From<ErrorCode> for ErrorObject<'_> {
|
Check warning on line 99 in types/src/error.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> types/src/error.rs:99:6
|
99 | impl<'a> PartialEq for ErrorObject<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
99 - impl<'a> PartialEq for ErrorObject<'a> {
99 + impl PartialEq for ErrorObject<'_> {
|
Check warning on line 316 in types/src/response.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> types/src/response.rs:316:6
|
316 | impl<'a, T> Serialize for Response<'a, T>
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
316 - impl<'a, T> Serialize for Response<'a, T>
316 + impl<T> Serialize for Response<'_, T>
|
Check warning on line 208 in types/src/response.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'de
warning: the following explicit lifetimes could be elided: 'de
--> types/src/response.rs:208:10
|
208 | impl<'de> serde::de::Visitor<'de> for FieldVisitor {
| ^^^ ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
208 - impl<'de> serde::de::Visitor<'de> for FieldVisitor {
208 + impl serde::de::Visitor<'_> for FieldVisitor {
|
Check warning on line 71 in types/src/response.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> types/src/response.rs:71:6
|
71 | impl<'a, T> fmt::Debug for Response<'a, T>
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
71 - impl<'a, T> fmt::Debug for Response<'a, T>
71 + impl<T> fmt::Debug for Response<'_, T>
|
Check warning on line 62 in types/src/response.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> types/src/response.rs:62:6
|
62 | impl<'a, T> fmt::Display for Response<'a, T>
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
62 - impl<'a, T> fmt::Display for Response<'a, T>
62 + impl<T> fmt::Display for Response<'_, T>
|
Check warning on line 399 in types/src/params.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> types/src/params.rs:399:6
|
399 | impl<'a> std::fmt::Display for Id<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
399 - impl<'a> std::fmt::Display for Id<'a> {
399 + impl std::fmt::Display for Id<'_> {
|
Check warning on line 353 in types/src/params.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> types/src/params.rs:353:6
|
353 | impl<'a> Id<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
353 - impl<'a> Id<'a> {
353 + impl Id<'_> {
|
Check warning on line 311 in types/src/params.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> types/src/params.rs:311:6
|
311 | impl<'a> SubscriptionId<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
311 - impl<'a> SubscriptionId<'a> {
311 + impl SubscriptionId<'_> {
|
Check warning on line 287 in types/src/params.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> types/src/params.rs:287:6
|
287 | impl<'a> From<String> for SubscriptionId<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
287 - impl<'a> From<String> for SubscriptionId<'a> {
287 + impl From<String> for SubscriptionId<'_> {
|
Check warning on line 281 in types/src/params.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> types/src/params.rs:281:6
|
281 | impl<'a> From<u64> for SubscriptionId<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
281 - impl<'a> From<u64> for SubscriptionId<'a> {
281 + impl From<u64> for SubscriptionId<'_> {
|
Check warning on line 272 in types/src/params.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> types/src/params.rs:272:6
|
272 | impl<'a> From<SubscriptionId<'a>> for JsonValue {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
272 - impl<'a> From<SubscriptionId<'a>> for JsonValue {
272 + impl From<SubscriptionId<'_>> for JsonValue {
|
Check warning on line 47 in types/src/params.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'de
warning: the following explicit lifetimes could be elided: 'de
--> types/src/params.rs:47:6
|
47 | impl<'de> Visitor<'de> for TwoPointZeroVisitor {
| ^^^ ^^^
|
= 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
help: elide the lifetimes
|
47 - impl<'de> Visitor<'de> for TwoPointZeroVisitor {
47 + impl Visitor<'_> for TwoPointZeroVisitor {
|
Check warning on line 397 in core/src/server/method_response.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> core/src/server/method_response.rs:397:6
|
397 | impl<'a, T> From<ErrorCode> for ResponsePayload<'a, T>
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
397 - impl<'a, T> From<ErrorCode> for ResponsePayload<'a, T>
397 + impl<T> From<ErrorCode> for ResponsePayload<'_, T>
|
Check warning on line 64 in core/src/server/helpers.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> core/src/server/helpers.rs:64:6
|
64 | impl<'a> io::Write for &'a mut BoundedWriter {
| ^^ ^^
|
= 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
help: elide the lifetimes
|
64 - impl<'a> io::Write for &'a mut BoundedWriter {
64 + impl io::Write for &mut BoundedWriter {
|
Check warning on line 397 in core/src/server/method_response.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> core/src/server/method_response.rs:397:6
|
397 | impl<'a, T> From<ErrorCode> for ResponsePayload<'a, T>
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
397 - impl<'a, T> From<ErrorCode> for ResponsePayload<'a, T>
397 + impl<T> From<ErrorCode> for ResponsePayload<'_, T>
|
Check warning on line 64 in core/src/server/helpers.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> core/src/server/helpers.rs:64:6
|
64 | impl<'a> io::Write for &'a mut BoundedWriter {
| ^^ ^^
|
= 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
help: elide the lifetimes
|
64 - impl<'a> io::Write for &'a mut BoundedWriter {
64 + impl io::Write for &mut BoundedWriter {
|
Check warning on line 107 in types/src/error.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> types/src/error.rs:107:6
|
107 | impl<'a> From<ErrorCode> for ErrorObject<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
107 - impl<'a> From<ErrorCode> for ErrorObject<'a> {
107 + impl From<ErrorCode> for ErrorObject<'_> {
|
Check warning on line 99 in types/src/error.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> types/src/error.rs:99:6
|
99 | impl<'a> PartialEq for ErrorObject<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
99 - impl<'a> PartialEq for ErrorObject<'a> {
99 + impl PartialEq for ErrorObject<'_> {
|
Check warning on line 316 in types/src/response.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> types/src/response.rs:316:6
|
316 | impl<'a, T> Serialize for Response<'a, T>
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
316 - impl<'a, T> Serialize for Response<'a, T>
316 + impl<T> Serialize for Response<'_, T>
|
Check warning on line 208 in types/src/response.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'de
warning: the following explicit lifetimes could be elided: 'de
--> types/src/response.rs:208:10
|
208 | impl<'de> serde::de::Visitor<'de> for FieldVisitor {
| ^^^ ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
208 - impl<'de> serde::de::Visitor<'de> for FieldVisitor {
208 + impl serde::de::Visitor<'_> for FieldVisitor {
|
Check warning on line 71 in types/src/response.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> types/src/response.rs:71:6
|
71 | impl<'a, T> fmt::Debug for Response<'a, T>
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
71 - impl<'a, T> fmt::Debug for Response<'a, T>
71 + impl<T> fmt::Debug for Response<'_, T>
|
Check warning on line 62 in types/src/response.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> types/src/response.rs:62:6
|
62 | impl<'a, T> fmt::Display for Response<'a, T>
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
62 - impl<'a, T> fmt::Display for Response<'a, T>
62 + impl<T> fmt::Display for Response<'_, T>
|