diff options
| author | Jana Dönszelmann <jana@donsz.nl> | 2025-02-09 22:49:57 +0100 |
|---|---|---|
| committer | Jana Dönszelmann <jana@donsz.nl> | 2025-02-24 14:31:19 +0100 |
| commit | 443b0f5ccf3181f18afa6102008ab4536ef0e5eb (patch) | |
| tree | 5c66e963bd3138b2394cbcd26b01f9666d71b13b /clippy_lints/src/inconsistent_struct_constructor.rs | |
| parent | 15820ecc2e61dd95ed6c12a260830bed5d321b4b (diff) | |
| download | rust-443b0f5ccf3181f18afa6102008ab4536ef0e5eb.tar.gz rust-443b0f5ccf3181f18afa6102008ab4536ef0e5eb.zip | |
Fix rustdoc and clippy
Diffstat (limited to 'clippy_lints/src/inconsistent_struct_constructor.rs')
| -rw-r--r-- | clippy_lints/src/inconsistent_struct_constructor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/inconsistent_struct_constructor.rs b/clippy_lints/src/inconsistent_struct_constructor.rs index 39ff3c13bcc..5b58113169b 100644 --- a/clippy_lints/src/inconsistent_struct_constructor.rs +++ b/clippy_lints/src/inconsistent_struct_constructor.rs @@ -183,7 +183,7 @@ fn suggestion<'tcx>( fn field_with_attrs_span(tcx: TyCtxt<'_>, field: &hir::ExprField<'_>) -> Span { if let Some(attr) = tcx.hir().attrs(field.hir_id).first() { - field.span.with_lo(attr.span.lo()) + field.span.with_lo(attr.span().lo()) } else { field.span } |
