Fix lint warnings

This commit is contained in:
2025-08-12 23:01:55 -03:00
parent ed717ef94b
commit 0cdbe63c55
6 changed files with 23 additions and 27 deletions
+5 -4
View File
@@ -82,7 +82,7 @@ where
for (index, component) in self.components {
if index != current_index {
if current_row.len() > 0 {
if !current_row.is_empty() {
rows.push(current_row.build());
current_row = ActionRow::new(&[]);
}
@@ -101,7 +101,7 @@ where
current_row.add(custom_id.clone(), component.clone());
}
if current_row.len() > 0 {
if !current_row.is_empty() {
rows.push(current_row.build());
}
@@ -161,6 +161,7 @@ where
}
}
#[allow(dead_code)]
pub fn content(mut self, content: impl ToString) -> Self {
self.content = Some(content.to_string());
@@ -194,7 +195,7 @@ where
for (index, component) in self.components {
if index != current_index {
if current_row.len() > 0 {
if !current_row.is_empty() {
rows.push(current_row.build());
current_row = ActionRow::new(&[]);
}
@@ -213,7 +214,7 @@ where
current_row.add(custom_id.clone(), component.clone());
}
if current_row.len() > 0 {
if !current_row.is_empty() {
rows.push(current_row.build());
}