mirror of
https://github.com/kristoferssolo/des-rs.git
synced 2026-02-25 04:58:17 +00:00
feat: add error type
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user