Commit Graph

4 Commits

Author SHA1 Message Date
Jeremy Fitzhardinge
75b83935f8 rust/netstring: move encode and decode into separate modules.
Summary: Pure code motion

Reviewed By: farnz

Differential Revision: D9780345

fbshipit-source-id: dd743f4cf4a16712114af9a098b78aea02a2179d
2018-09-12 20:37:41 -07:00
Jeremy Fitzhardinge
48773d7c76 rust/netstring: convert from error-chain to failure
Summary: Use failure rather than error-chain for errors.

Reviewed By: StanislavGlebik

Differential Revision: D9780341

fbshipit-source-id: 4d41855093cf812e83b6c348a7499e85d9472daf
2018-09-12 20:37:41 -07:00
Jeremy Fitzhardinge
908adb73fa rust/netstring: refactor decoder into its own function
Summary:
Split the decoder out into its own function. This can handle partial results,
but the Decoder trait API cannot, so make sure the Decoder still only returns
complete results.

Reviewed By: farnz

Differential Revision: D9780342

fbshipit-source-id: b2439cba95b1e42444adbf2ee4b6e3792703a188
2018-09-12 20:37:41 -07:00
Lukas Piatkowski
b03d5cf630 'Re-sync with internal repository' 2018-07-26 09:09:45 -07:00