From ae7a95222b0b5fd3e8484177b3bf09a9195dcae9 Mon Sep 17 00:00:00 2001 From: Simon THOBY Date: Mon, 15 Nov 2021 21:41:17 +0100 Subject: tests: move common test code to a separate file Also: fix a few TODOs with the current expressions Fun fact: the test identified a problem in our implementation of Payload::Transport::build ! --- src/expr/payload.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/expr/payload.rs b/src/expr/payload.rs index 7612fd9..4ba47df 100644 --- a/src/expr/payload.rs +++ b/src/expr/payload.rs @@ -28,7 +28,7 @@ impl Payload { }), Payload::Transport(ref f) => RawPayload::Transport(RawPayloadData { offset: f.offset(), - len: f.offset(), + len: f.len(), }), } } -- cgit v1.2.3