Skip to content

Commit 81f6da4

Browse files
authored
Fix current clippy warnings (#337)
1 parent 80a3a9c commit 81f6da4

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/reply/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl ReplyHandle<'_> {
9393
// TODO: return the edited Message object?
9494
// TODO: should I eliminate the ctx parameter by storing it in self instead? Would infect
9595
// ReplyHandle with <U, E> type parameters
96-
pub async fn edit<'att, U, E>(
96+
pub async fn edit<U, E>(
9797
&self,
9898
ctx: crate::Context<'_, U, E>,
9999
builder: CreateReply,

src/structs/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ context_methods! {
153153
///
154154
/// Note: panics when called in an autocomplete context!
155155
await (send self builder)
156-
(pub async fn send<'att>(
156+
(pub async fn send(
157157
self,
158158
builder: crate::CreateReply,
159159
) -> Result<crate::ReplyHandle<'a>, serenity::Error>) {

src/structs/framework_error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,8 @@ impl<U, E: std::fmt::Display> std::fmt::Display for FrameworkError<'_, U, E> {
432432
}
433433
}
434434

435-
impl<'a, U: std::fmt::Debug, E: std::error::Error + 'static> std::error::Error
436-
for FrameworkError<'a, U, E>
435+
impl<U: std::fmt::Debug, E: std::error::Error + 'static> std::error::Error
436+
for FrameworkError<'_, U, E>
437437
{
438438
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
439439
match self {

src/structs/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Plain data structs that define the framework configuration.
2+
#![allow(clippy::needless_lifetimes)] // Triggered from inside derivative
23

34
mod context;
45
pub use context::*;

0 commit comments

Comments
 (0)