mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-16 20:55:03 +01:00
more renaming
This commit is contained in:
parent
7ce8f8058d
commit
186f744715
9 changed files with 213 additions and 341 deletions
|
|
@ -35,12 +35,12 @@ pub enum FieldValue {
|
|||
|
||||
pub use generated::*;
|
||||
|
||||
/// Parses the payload of a method frame into the class/method
|
||||
/// Parses the payload of a method frame into the method
|
||||
pub fn parse_method(payload: &[u8]) -> Result<generated::Method, TransError> {
|
||||
let nom_result = generated::parse::parse_method(payload);
|
||||
|
||||
match nom_result {
|
||||
Ok(([], class)) => Ok(class),
|
||||
Ok(([], method)) => Ok(method),
|
||||
Ok((_, _)) => {
|
||||
Err(
|
||||
ConException::SyntaxError(vec!["could not consume all input".to_string()])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue