You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnErr(Error::new(Span::call_site(),"Deriving `Destruct` is currently only supported for structs"));
14
14
};
15
15
16
-
let core_types = match proc_macro_crate::crate_name("core-types")
17
-
.map_err(|e| Error::new(Span::call_site(),format!("Failed to find location of core_types. Make sure it is imported as a dependency: {e}")))?
18
-
{
19
-
FoundCrate::Itself => quote!(crate),
20
-
FoundCrate::Name(name) => {
21
-
let ident = syn::Ident::new(&name,Span::call_site());
22
-
quote!(#ident)
23
-
}
24
-
};
16
+
let core_types =
17
+
match proc_macro_crate::crate_name("core-types").map_err(|e| Error::new(Span::call_site(),format!("Failed to find location of core_types. Make sure it is imported as a dependency: {e}")))? {
18
+
FoundCrate::Itself => quote!(crate),
19
+
FoundCrate::Name(name) => {
20
+
let ident = syn::Ident::new(&name,Span::call_site());
0 commit comments