split generated code so that methods are now in core

This commit is contained in:
nora 2022-02-20 21:22:30 +01:00
parent 3b656b911a
commit c333f20531
20 changed files with 1337 additions and 1206 deletions

View file

@ -1,7 +1,8 @@
use crate::error::{ConException, ProtocolError, TransError};
use crate::methods::generated::parse::IResult;
use crate::methods::generated::{
Bit, Long, Longlong, Longstr, Octet, Short, Shortstr, Table, Timestamp,
use amqp_core::methods::{
Bit, FieldValue, Long, Longlong, Longstr, Octet, Short, Shortstr, Table, TableFieldName,
Timestamp,
};
use nom::branch::alt;
use nom::bytes::complete::{tag, take};
@ -56,7 +57,6 @@ macro_rules! fail {
};
}
use crate::methods::{FieldValue, TableFieldName};
pub use fail;
pub fn octet(input: &[u8]) -> IResult<'_, Octet> {