Skip to content

Continuous integration #4314

Continuous integration

Continuous integration #4314

GitHub Actions / clippy succeeded Jan 24, 2025 in 0s

clippy

32 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 32
Note 0
Help 0

Versions

  • rustc 1.84.0 (9fc6b4312 2025-01-07)
  • cargo 1.84.0 (66221abde 2024-11-19)
  • clippy 0.1.84 (9fc6b43126 2025-01-07)

Annotations

Check warning on line 397 in core/src/server/method_response.rs

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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 28 in server/src/transport/http.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this `map_or` is redundant

warning: this `map_or` is redundant
  --> server/src/transport/http.rs:21:2
   |
21 | /     content_type.and_then(|val| val.to_str().ok()).map_or(false, |content| {
22 | |         content.eq_ignore_ascii_case("application/json")
23 | |             || content.eq_ignore_ascii_case("application/json; charset=utf-8")
24 | |             || content.eq_ignore_ascii_case("application/json;charset=utf-8")
...  |
27 | |             || content.eq_ignore_ascii_case("application/json-rpc; charset=utf-8")
28 | |     })
   | |______^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
   = note: `#[warn(clippy::unnecessary_map_or)]` on by default
help: use is_some_and instead
   |
21 ~     content_type.and_then(|val| val.to_str().ok()).is_some_and(|content| {
22 ~         content.eq_ignore_ascii_case("application/json")
23 ~             || content.eq_ignore_ascii_case("application/json; charset=utf-8")
24 ~             || content.eq_ignore_ascii_case("application/json;charset=utf-8")
25 ~             || content.eq_ignore_ascii_case("application/json-rpc")
26 ~             || content.eq_ignore_ascii_case("application/json-rpc;charset=utf-8")
27 ~             || content.eq_ignore_ascii_case("application/json-rpc; charset=utf-8")
28 ~     })
   |

Check warning on line 397 in core/src/server/method_response.rs

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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>
   |