docs(tvix/nix-compat/wire/bytes/reader): None case doesn't exist
We always read the length before returning a BytesReader, so len() cannot be called before the length is read. Change-Id: Ifa1cbc2c0923dd24d59e0af5e135ab8ed7314aa9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12453 Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
This commit is contained in:
parent
bdf1162d47
commit
e573f8389c
1 changed files with 0 additions and 2 deletions
|
@ -109,8 +109,6 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Remaining data length, ie not including data already read.
|
/// Remaining data length, ie not including data already read.
|
||||||
///
|
|
||||||
/// If the size has not been read yet, this is [None].
|
|
||||||
pub fn len(&self) -> u64 {
|
pub fn len(&self) -> u64 {
|
||||||
match self.state {
|
match self.state {
|
||||||
State::Body {
|
State::Body {
|
||||||
|
|
Loading…
Reference in a new issue