feat: add error type

This commit is contained in:
2025-10-04 17:02:25 +03:00
parent d362a7df3a
commit b8b963455d
5 changed files with 36 additions and 35 deletions

View File

@@ -2,6 +2,9 @@ use crate::{codegen::generate_impl, grammar::StructDef};
use unsynn::*;
pub fn impl_bit_wrapper(input: &TokenStream) -> TokenStream {
let parsed = input.to_token_iter().parse::<StructDef>().unwrap();
let parsed = input
.to_token_iter()
.parse::<StructDef>()
.expect("StructDef parsing");
generate_impl(&parsed.into())
}