We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11c2282 commit 03a81f3Copy full SHA for 03a81f3
src/reply/builder.rs
@@ -33,7 +33,7 @@ impl CreateReply {
33
/// Existing embeds on this are kept.
34
/// When editing a message, this will overwrite previously sent embeds.
35
pub fn embed(mut self, embed: serenity::CreateEmbed) -> Self {
36
- self.embeds.get_or_insert_with(|| Default::default()).push(embed);
+ self.embeds.get_or_insert_with(Vec::new).push(embed);
37
self
38
}
39
0 commit comments