Fix rustdoc and clippy

This commit is contained in:
Jana Dönszelmann 2025-02-09 22:49:57 +01:00
parent 15820ecc2e
commit 443b0f5ccf
24 changed files with 118 additions and 112 deletions

View file

@ -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
}