big future

This commit is contained in:
nora 2022-02-13 16:16:10 +01:00
parent 2aeb588ab3
commit fcf531df43
8 changed files with 1405 additions and 1297 deletions

View file

@ -1,4 +1,3 @@
use crate::classes::generated::Class;
use crate::error::{ConException, ProtocolError, TransError};
use std::collections::HashMap;
@ -35,7 +34,7 @@ pub enum FieldValue {
pub use generated::*;
/// Parses the payload of a method frame into the class/method
pub fn parse_method(payload: &[u8]) -> Result<Class, TransError> {
pub fn parse_method(payload: &[u8]) -> Result<generated::Class, TransError> {
let nom_result = generated::parse::parse_method(payload);
match nom_result {