Skip to content

Commit c8a28d9

Browse files
committed
remove new imports to match style
1 parent 9a99852 commit c8a28d9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/modal.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Modal trait and utility items for implementing it (mainly for the derive macro)
22
33
use crate::serenity_prelude as serenity;
4-
use serenity::all::{Component, LabelComponent};
54

65
/// Meant for use in derived [`Modal::parse`] implementation
76
///
@@ -15,8 +14,8 @@ pub fn find_modal_text(
1514
for component in data.components.iter_mut() {
1615
// text inputs can either exist in Labels or Containers
1716
match component {
18-
Component::Label(label) => match &mut label.component {
19-
LabelComponent::InputText(input_text) => {
17+
serenity::Component::Label(label) => match &mut label.component {
18+
serenity::LabelComponent::InputText(input_text) => {
2019
if input_text.custom_id == custom_id {
2120
return match std::mem::take(&mut input_text.value) {
2221
Some(val) if val.is_empty() => None,

0 commit comments

Comments
 (0)