Skip to content

Commit

Permalink
Revert the addition of CreateEmbed::into_inner (#2888)
Browse files Browse the repository at this point in the history
This reverts commit 8c84b4f as it is not easily possible on the next branch.
  • Loading branch information
GnomedDev committed Jun 9, 2024
1 parent e34f449 commit 9ad74d4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/builder/create_embed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,6 @@ impl CreateEmbed {
super::check_overflow(length, crate::constants::EMBED_MAX_LENGTH)
.map_err(|overflow| Error::Model(ModelError::EmbedTooLarge(overflow)))
}

/// Consumes the [`CreateEmbed`], returning the wrapped [`Embed`].
#[inline]
#[must_use]
pub fn into_inner(self) -> Embed {
self.0
}
}

impl Default for CreateEmbed {
Expand Down

0 comments on commit 9ad74d4

Please sign in to comment.