mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-06-03 18:24:09 +02:00
iresult->result in more places
This commit is contained in:
parent
3ad9ebafd7
commit
1522bd2648
6 changed files with 20 additions and 25 deletions
|
|
@ -75,14 +75,14 @@ impl Derivable for Event {
|
|||
|
||||
Ok(
|
||||
quote_spanned!(span => impl #impl_generics Event<#lifetime> for #struct_ident #ty_generics #where_clause {
|
||||
fn parse(input: & #lifetime str) -> IResult<Self> {
|
||||
fn parse(input: & #lifetime str) -> Result<Self> {
|
||||
#(#required_fields)*
|
||||
|
||||
#initiator
|
||||
|
||||
#update
|
||||
|
||||
Ok(("", event))
|
||||
Ok(event)
|
||||
}
|
||||
}
|
||||
),
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ impl Derivable for Events {
|
|||
Ok(
|
||||
quote_spanned!(span => impl #impl_generics #enum_ident #ty_generics #where_clause {
|
||||
pub fn parse(raw: &RawEvent<'a>) -> Result<Self, GameEventError> {
|
||||
dbg!(raw);
|
||||
Ok(match raw.ty {
|
||||
#(#variants)*
|
||||
_ => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue