explicitly match errors

This commit is contained in:
faldor20 2024-04-02 11:16:02 +10:00
parent f330e9aa29
commit 892d264304
No known key found for this signature in database
GPG key ID: F2216079B890CD57
2 changed files with 32 additions and 9 deletions

View file

@ -165,13 +165,13 @@ fn record_2_fields() {
\#Derived.stateRecord, #Derived.fmt ->
when when #Derived.stateRecord.first is
Ok #Derived.first -> Ok #Derived.first
_ ->
Err (NoField) ->
when decodeWith [] decoder #Derived.fmt is
#Derived.decRec2 -> #Derived.decRec2.result is
Ok #Derived.first ->
when when #Derived.stateRecord.second is
Ok #Derived.second -> Ok #Derived.second
_ ->
Err (NoField) ->
when decodeWith [] decoder #Derived.fmt is
#Derived.decRec -> #Derived.decRec.result is
Ok #Derived.second ->