Skip to content

Commit

Permalink
fix: fix lint
Browse files Browse the repository at this point in the history
i introduced this in elkowar#1119, whoops
  • Loading branch information
w-lfchen committed Aug 24, 2024
1 parent f95a804 commit 6d611b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/eww/src/widgets/widget_definitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ const WIDGET_NAME_STACK: &str = "stack";
fn build_gtk_stack(bargs: &mut BuilderArgs) -> Result<gtk::Stack> {
let gtk_widget = gtk::Stack::new();

if bargs.widget_use.children.len() < 1 {
if bargs.widget_use.children.is_empty() {
return Err(DiagError(gen_diagnostic!("stack must contain at least one element", bargs.widget_use.span)).into());
}

Expand Down

0 comments on commit 6d611b9

Please sign in to comment.