File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
examples/e14_message_components/src Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ use serenity::futures::StreamExt;
1717use serenity:: model:: prelude:: * ;
1818use 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<...>.
Original file line number Diff line number Diff 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," ;
You can’t perform that action at this time.
0 commit comments