Skip to content

Commit

Permalink
feat: Remove need for format in message delegation
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmah309 committed Oct 17, 2024
1 parent b39973c commit 1ef7a86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impl/src/expand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ fn impl_display(error_enum_node: &ErrorEnumGraphNode, token_stream: &mut TokenSt
}
} else {
error_variant_tokens.append_all(quote::quote! {
#enum_name::#name(ref source) => &*format!("{}", source),
#enum_name::#name(ref source) => &source.to_string(),
});
}
}
Expand Down

0 comments on commit 1ef7a86

Please sign in to comment.