about summary refs log tree commit diff
path: root/tvix/default.nix
diff options
context:
space:
mode:
authoredef <edef@edef.eu>2024-04-29T16·07+0000
committeredef <edef@edef.eu>2024-04-29T16·45+0000
commit97e460007860ca8aa966ef10328fc62eec23244e (patch)
treeb692edfd0474ed8c79b44bd594bf5e1c6a0b1b92 /tvix/default.nix
parent298c6876cc28c427fc10503dab8fc154fcd02877 (diff)
refactor(nix-compat/wire/bytes/reader): move size reading to async ctor r/8034
with_size only existed to allow separating the phases of reading size
and reading data, and similarly the Size state only existed to allow
folding size reading into poll_read.

Neither of these are necessary if we make the constructor async,
and handle the size reading there.

As a bonus, this makes BytesReader::len sensibly typed, and permits
implementing is_empty, as Clippy demands of us.

Change-Id: I72173ec06d60b7998d16a3ecfc5e6ac5424bbed3
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11542
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/default.nix')
0 files changed, 0 insertions, 0 deletions