kostya / lexbor

Fast HTML5 Parser with CSS selectors. This is successor of myhtml and expected to be faster and use less memory.
MIT License
95 stars 14 forks source link

error when compiling on crystal 0.36 #6

Closed Dan-Do closed 3 years ago

Dan-Do commented 3 years ago

Could you please look at this?

In lib/lexbor/src/lexbor/node/serialization.cr:31:53

31 | Lib.serialize_tree_cb(node.@element, SERIALIZE_CALLBACK, iow.as(Void*)) ^----------------- Error: argument 'cb' of 'Lexbor::Lib#serialize_tree_cb' must be Lexbor::Lib::SerializeCbT, not Proc(Pointer(UInt8), UInt64, Pointer(Void), Lexbor::Lib::StatusT)