Skip to content

Commit 8bae38a

Browse files
committed
Fix clippy
1 parent 0d18746 commit 8bae38a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/e14_message_components/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use serenity::futures::StreamExt;
1717
use serenity::model::prelude::*;
1818
use serenity::prelude::*;
1919

20-
fn sound_button(name: &str, emoji: ReactionType) -> CreateButton {
20+
fn sound_button(name: &str, emoji: ReactionType) -> CreateButton<'_> {
2121
// To add an emoji to buttons, use .emoji(). The method accepts anything ReactionType or
2222
// anything that can be converted to it. For a list of that, search Trait Implementations in
2323
// the docs for From<...>.

src/builder/create_attachment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ impl<'a> CreateAttachment<'a> {
115115
/// # Errors
116116
///
117117
/// See [`CreateAttachment::get_data`] for details.
118-
pub async fn encode(&self) -> Result<ImageData> {
118+
pub async fn encode(&self) -> Result<ImageData<'_>> {
119119
use base64::engine::{Config, Engine};
120120

121121
const PREFIX: &str = "data:image/png;base64,";

0 commit comments

Comments
 (0)