@@ -4,12 +4,12 @@ use std::{borrow::Cow, collections::HashMap};
44use convert_case:: { Case , Casing } ;
55use itertools:: Itertools ;
66use lazy_static:: lazy_static;
7- use proc_macro2:: { TokenStream , TokenTree } ;
7+ use proc_macro2:: TokenStream ;
88use quote:: { format_ident, quote, ToTokens } ;
99use syn:: {
10- parse_quote, punctuated:: Punctuated , AngleBracketedGenericArguments , Attribute , Expr , Field ,
11- FnArg , GenericArgument , GenericParam , Ident , ImplItemFn , Lit , Meta , MetaNameValue , PatLit ,
12- PatType , PathArguments , PredicateType , Token , Type , TypePath , Variant , WhereClause ,
10+ parse_quote, punctuated:: Punctuated , AngleBracketedGenericArguments , Attribute , Expr ,
11+ GenericArgument , Ident , Lit , Meta , MetaNameValue , PathArguments , Token , Type , TypePath ,
12+ Variant ,
1313} ;
1414
1515use crate :: {
@@ -319,6 +319,8 @@ fn generate_struct_builder_fn(ty: &RStruct, ctx: &CodegenCtx) -> TokenStream {
319319 }
320320}
321321
322+ // TODO: remove me
323+ #[ allow( dead_code) ]
322324#[ derive( Debug ) ]
323325struct Param {
324326 is_default : bool ,
@@ -426,6 +428,8 @@ impl<'p> DocComment<'p> {
426428 /// Add a description section made up of multiple lines.
427429 ///
428430 /// Each line will be turned into its own paragraph.
431+ // TODO: remove me
432+ #[ allow( dead_code) ]
429433 pub fn with_description_lines < L , S > ( mut self , description : L ) -> Self
430434 where
431435 S : Into < Cow < ' static , str > > ,
@@ -524,6 +528,9 @@ fn get_doc_comment(attrs: &[Attribute]) -> Option<String> {
524528 _ => None ,
525529 } )
526530}
531+
532+ // TODO: remove me
533+ #[ allow( dead_code) ]
527534fn get_enum_params ( enum_ : & REnum , ctx : & CodegenCtx ) -> Vec < Param > {
528535 let as_type = enum_. as_type ( ) ;
529536 let inner_type = match & as_type {
0 commit comments