Skip to content

Commit 4beb544

Browse files
committed
Fix clippy warnings breaking CI
1 parent d6b9b28 commit 4beb544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

command_attr/src/attributes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ impl AttributeOption for bool {
193193
fn parse(values: Values) -> Result<Self> {
194194
validate(&values, &[ValueKind::Name, ValueKind::SingleList])?;
195195

196-
Ok(values.literals.first().map_or(true, LitExt::to_bool))
196+
Ok(values.literals.first().is_none_or(LitExt::to_bool))
197197
}
198198
}
199199

0 commit comments

Comments
 (0)