Use syn::Error's combine() API instead of Vec<syn::Error>

This commit is contained in:
David Tolnay
2023-05-25 08:09:24 -07:00
parent a0f850f15b
commit 7c2c12aa43
4 changed files with 16 additions and 18 deletions
+1 -3
View File
@@ -15,9 +15,7 @@ use this;
use std::collections::BTreeSet;
use std::ptr;
pub fn expand_derive_deserialize(
input: &mut syn::DeriveInput,
) -> Result<TokenStream, Vec<syn::Error>> {
pub fn expand_derive_deserialize(input: &mut syn::DeriveInput) -> syn::Result<TokenStream> {
replace_receiver(input);
let ctxt = Ctxt::new();