Open OvermindDL1 opened 2 months ago
This is built on PR #2 for note, but can be cherry picked out if that PR is unsatisfactory for some reason.
Made outputs
not public since it isn't allowed in the spec anyway, only faults
are, thinking output
should still use it though as it allows for convenient assertion or only one matching entry, inputs
should probably have the same check.
Also fixed WsMessage::parts
because it was missing lifetimes on its return type so it was defaulting to the &self
lifetime, which was overly constraining, which it should have been bound on 'a, 'input
like everything else.
Should fix #3, although I'm unsure if the old output/fault should return a new error variant instead of panicing on multiple results (definitely shouldn't just hide the rest for sure though).