Fix compiler error when running the examples #40

Merged
Geometrically merged 1 commit from master into master 2021-02-15 17:58:36 +00:00

View file

@ -1,12 +1,11 @@
use inflector::cases::pascalcase::to_pascal_case; use inflector::cases::pascalcase::to_pascal_case;
use lazy_static::lazy_static; use lazy_static::lazy_static;
use proc_macro2::{Ident, TokenStream}; use proc_macro2::{Ident, TokenStream};
use quote::format_ident; use quote::{format_ident, ToTokens};
use quote::quote; use quote::quote;
use regex::Regex; use regex::Regex;
use std::collections::HashMap; use std::collections::HashMap;
use std::error::Error; use std::error::Error;
use syn::export::ToTokens;
use syn::{FnArg, ForeignItem, ForeignItemFn, Item, ReturnType}; use syn::{FnArg, ForeignItem, ForeignItemFn, Item, ReturnType};
type CGResult<T> = Result<T, Box<dyn Error>>; type CGResult<T> = Result<T, Box<dyn Error>>;