Skip to content

Commit

Permalink
style: remove trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Jun 18, 2024
1 parent 41c9fda commit 57a4deb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions macros/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ fn gen_build_func(
) -> syn::Result<TokenStream> {
match &variant.fields {
syn::Fields::Named(fields) => {
// Each error variant has one or more labels (e.g. #[label(...)]),
// Each error variant has one or more labels (e.g. #[label(...)]),
// get the labels for this variant.
let labels = get_labels(kind, variant)?;

Expand All @@ -192,7 +192,7 @@ fn gen_build_func(
// by get_labels.
let main_label_span = &main_label.0;

// The arguments to the function have the same names and types as
// The arguments to the function have the same names and types as
// the fields in the struct variant. Except for the field named
// `detailed_report`, which is not included in the arguments.
let mut args = TokenStream::new();
Expand Down Expand Up @@ -224,7 +224,7 @@ fn gen_build_func(
"warning" => quote!(Level::Warning),
_ => unreachable!(),
};

Ok(quote!(
#[doc(hidden)]
pub fn #fn_ident(report_builder: &ReportBuilder, #args) -> Self {
Expand Down

0 comments on commit 57a4deb

Please sign in to comment.