Fix rustdoc and clippy
This commit is contained in:
parent
15820ecc2e
commit
443b0f5ccf
24 changed files with 118 additions and 112 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue