chore: use shorthand initializer

This commit is contained in:
Yuri Astrakhan 2024-08-02 12:16:52 -04:00
parent 5367673014
commit 84e261e5cb
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ fn generate_handler(cx: &ExtCtxt<'_>, handler: Ident, span: Span, sig_span: Span
let params = thin_vec![cx.param(span, size, ty_usize.clone()), cx.param(span, align, ty_usize)]; let params = thin_vec![cx.param(span, size, ty_usize.clone()), cx.param(span, align, ty_usize)];
let decl = cx.fn_decl(params, never); let decl = cx.fn_decl(params, never);
let header = FnHeader { safety: Safety::Unsafe(span), ..FnHeader::default() }; let header = FnHeader { safety: Safety::Unsafe(span), ..FnHeader::default() };
let sig = FnSig { decl, header, span: span }; let sig = FnSig { decl, header, span };
let body = Some(cx.block_expr(call)); let body = Some(cx.block_expr(call));
let kind = ItemKind::Fn(Box::new(Fn { let kind = ItemKind::Fn(Box::new(Fn {

View File

@ -588,7 +588,7 @@ pub fn report_cycle<'a>(
cycle_stack, cycle_stack,
stack_bottom: stack[0].query.description.to_owned(), stack_bottom: stack[0].query.description.to_owned(),
alias, alias,
cycle_usage: cycle_usage, cycle_usage,
stack_count, stack_count,
note_span: (), note_span: (),
}; };