Skip to content

Commit 6c90230

Browse files
committed
Remove redundant comment about .unwrap
1 parent 493354a commit 6c90230

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clippy_lints/src/default.rs

-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,6 @@ fn field_reassigned_by_stmt<'tcx>(this: &Stmt<'tcx>, binding_name: Symbol) -> Op
296296
fn fields_of_type(ty: Ty<'_>) -> Vec<Ident> {
297297
if let Adt(adt, _) = ty.kind() {
298298
if adt.is_struct() {
299-
// unwrap is safe, because this is a struct and structs have only one variant
300299
let variant = &adt.non_enum_variant();
301300
return variant.fields.iter().map(|f| f.ident).collect();
302301
}

0 commit comments

Comments
 (0)