refactor: unnecessary quotation kind
This commit is contained in:
parent
75cbb5904e
commit
4e3ddf716e
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ private def deriveInductiveInstance (indVal : InductiveVal) (params : Array Expr
|
|||
let mkBody (tgt : Name) (func : Name) : TermElabM Syntax := do
|
||||
let items ← nms.mapM fun nm => `(← $(mkIdent func) $nm)
|
||||
let tm := Syntax.mkApp (mkIdent <| Name.mkStr tgt ctor.getString!) items
|
||||
`(Parser.Term.termReturn| return $tm:term)
|
||||
`(return $tm:term)
|
||||
|
||||
let encArm ← `(matchF| | $(mkPattern indVal.name):term => $(← mkBody packetNm ``rpcEncode))
|
||||
let decArm ← `(matchF| | $(mkPattern packetNm):term => $(← mkBody indVal.name ``rpcDecode))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue