diff options
author | Simon THOBY <git@nightmared.fr> | 2021-11-15 21:41:17 +0100 |
---|---|---|
committer | lafleur <lafleur@boum.org> | 2021-11-26 12:07:37 +0100 |
commit | ae7a95222b0b5fd3e8484177b3bf09a9195dcae9 (patch) | |
tree | a748f90c7997c487c1b98daec38fd747dd09a27e /src | |
parent | 792ab25a91e3cc667b8e42ffc82cb77f5d99af44 (diff) |
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 !
Diffstat (limited to 'src')
-rw-r--r-- | src/expr/payload.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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(), }), } } |