Skip to content

Commit 03a81f3

Browse files
committed
Switched to Vec::new for the builder to mirror Serenity's builder pattern
1 parent 11c2282 commit 03a81f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reply/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl CreateReply {
3333
/// Existing embeds on this are kept.
3434
/// When editing a message, this will overwrite previously sent embeds.
3535
pub fn embed(mut self, embed: serenity::CreateEmbed) -> Self {
36-
self.embeds.get_or_insert_with(|| Default::default()).push(embed);
36+
self.embeds.get_or_insert_with(Vec::new).push(embed);
3737
self
3838
}
3939

0 commit comments

Comments
 (0)