Skip to content

Commit

Permalink
Remove unnecessary fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
schungx committed May 15, 2024
1 parent 3c7663a commit 4ccb51e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions codegen/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,13 @@ impl Parse for Module {
for item in &*content {
if let syn::Item::Const(syn::ItemConst {
vis: syn::Visibility::Public(..),
ref expr,
ident,
attrs,
ty,
..
}) = item
{
consts.push(ExportedConst {
name: ident.to_string(),
typ: ty.clone(),
expr: expr.as_ref().clone(),
cfg_attrs: crate::attrs::collect_cfg_attr(attrs),
})
}
Expand Down
2 changes: 0 additions & 2 deletions codegen/src/rhai_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ use crate::module::Module;
#[derive(Debug)]
pub struct ExportedConst {
pub name: String,
pub typ: Box<syn::Type>,
pub expr: syn::Expr,
pub cfg_attrs: Vec<syn::Attribute>,
}

Expand Down

0 comments on commit 4ccb51e

Please sign in to comment.