Fix clippy issues #21

Closed
opened 2025-01-17 21:33:39 +00:00 by kemitix · 0 comments
Owner
warning: the following explicit lifetimes could be elided: 'ctx
  --> src/trello/client.rs:26:6
   |
26 | impl<'ctx> TrelloClient<'ctx> {
   |      ^^^^               ^^^^
   |
   = 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
   |
26 - impl<'ctx> TrelloClient<'ctx> {
26 + impl TrelloClient<'_> {
   |
warning: the following explicit lifetimes could be elided: 'ctx
   --> src/trello/client.rs:120:6
    |
120 | impl<'ctx> TrelloClient<'ctx> {
    |      ^^^^               ^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
    |
120 - impl<'ctx> TrelloClient<'ctx> {
120 + impl TrelloClient<'_> {
    |
warning: `trello-to-deck` (lib) generated 2 warnings (run `cargo clippy --fix --lib -p trello-to-deck` to apply 2 suggestions)
``` warning: the following explicit lifetimes could be elided: 'ctx --> src/trello/client.rs:26:6 | 26 | impl<'ctx> TrelloClient<'ctx> { | ^^^^ ^^^^ | = 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 | 26 - impl<'ctx> TrelloClient<'ctx> { 26 + impl TrelloClient<'_> { | warning: the following explicit lifetimes could be elided: 'ctx --> src/trello/client.rs:120:6 | 120 | impl<'ctx> TrelloClient<'ctx> { | ^^^^ ^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 120 - impl<'ctx> TrelloClient<'ctx> { 120 + impl TrelloClient<'_> { | warning: `trello-to-deck` (lib) generated 2 warnings (run `cargo clippy --fix --lib -p trello-to-deck` to apply 2 suggestions) ```
kemitix referenced this issue from a commit 2025-01-18 08:33:58 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: kemitix/trello-to-deck#21
No description provided.