Skip to content

Commit

Permalink
Fix current clippy warnings (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomedDev authored Feb 15, 2025
1 parent 80a3a9c commit 81f6da4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/reply/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl ReplyHandle<'_> {
// TODO: return the edited Message object?
// TODO: should I eliminate the ctx parameter by storing it in self instead? Would infect
// ReplyHandle with <U, E> type parameters
pub async fn edit<'att, U, E>(
pub async fn edit<U, E>(
&self,
ctx: crate::Context<'_, U, E>,
builder: CreateReply,
Expand Down
2 changes: 1 addition & 1 deletion src/structs/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ context_methods! {
///
/// Note: panics when called in an autocomplete context!
await (send self builder)
(pub async fn send<'att>(
(pub async fn send(
self,
builder: crate::CreateReply,
) -> Result<crate::ReplyHandle<'a>, serenity::Error>) {
Expand Down
4 changes: 2 additions & 2 deletions src/structs/framework_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ impl<U, E: std::fmt::Display> std::fmt::Display for FrameworkError<'_, U, E> {
}
}

impl<'a, U: std::fmt::Debug, E: std::error::Error + 'static> std::error::Error
for FrameworkError<'a, U, E>
impl<U: std::fmt::Debug, E: std::error::Error + 'static> std::error::Error
for FrameworkError<'_, U, E>
{
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match self {
Expand Down
1 change: 1 addition & 0 deletions src/structs/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//! Plain data structs that define the framework configuration.
#![allow(clippy::needless_lifetimes)] // Triggered from inside derivative

mod context;
pub use context::*;
Expand Down

0 comments on commit 81f6da4

Please sign in to comment.