We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a79f959 commit 80fa4ceCopy full SHA for 80fa4ce
1 file changed
polymorphic_fn/src/lib.rs
@@ -88,7 +88,10 @@ pub fn polymorphic_fn(input: TokenStream) -> TokenStream {
88
let implementations: Vec<&Block> = input.implementations.iter().collect();
89
90
if implementations.is_empty() {
91
- return syn::Error::new_spanned(&input.name, "At least one implementation must be provided")
+ return syn::Error::new_spanned(
92
+ &input.name,
93
+ "At least one implementation must be provided",
94
+ )
95
.to_compile_error()
96
.into();
97
}
0 commit comments