Skip to content

Commit

Permalink
fix(computegrpah_macros): add missing format!()
Browse files Browse the repository at this point in the history
  • Loading branch information
maximmaxim345 committed Feb 22, 2025
1 parent c9ab130 commit de1433f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/computegraph_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ fn node_impl(args: TokenStream, input: TokenStream) -> TokenStream {
// return type of '-> ()'
}
1 => {
return Error::new_spanned(node_name,
"ambiguous return type, use #[node({node_name} -> output)] (to return the whole tuple) or #[node({node_name} -> (output))] (to return the first element of the tuple)"
return Error::new_spanned(&node_name,
format!("ambiguous return type, use #[node({node_name} -> output)] (to return the whole tuple) or #[node({node_name} -> (output))] (to return the first element of the tuple)")
).to_compile_error().into();
}
n => {
Expand Down

0 comments on commit de1433f

Please sign in to comment.