Skip to content

Commit 7950bfa

Browse files
committed
chore: fix restack mistake.
1 parent 43a9852 commit 7950bfa

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

tasks/ast_codegen/src/generators/ast_builder.rs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ use std::{borrow::Cow, collections::HashMap};
44
use convert_case::{Case, Casing};
55
use itertools::Itertools;
66
use lazy_static::lazy_static;
7-
use proc_macro2::{TokenStream, TokenTree};
7+
use proc_macro2::TokenStream;
88
use quote::{format_ident, quote, ToTokens};
99
use 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

1515
use 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)]
323325
struct 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)]
527534
fn 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

Comments
 (0)