diff options
author | Alex Auvolat <alex@adnab.me> | 2022-09-13 12:25:37 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-09-13 12:25:37 +0200 |
commit | c00676feba3819883b2888799d5f743c4ca9bca0 (patch) | |
tree | 449b89efacadaa7f57b90f4d489c585f8ef2b19a /src/recv.rs | |
parent | 18d5abc981faf2d76ced42bad5cb69aa83128832 (diff) | |
download | netapp-c00676feba3819883b2888799d5f743c4ca9bca0.tar.gz netapp-c00676feba3819883b2888799d5f743c4ca9bca0.zip |
Uniformize flag naming
Diffstat (limited to 'src/recv.rs')
-rw-r--r-- | src/recv.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/recv.rs b/src/recv.rs index 8909190..0de7bef 100644 --- a/src/recv.rs +++ b/src/recv.rs @@ -91,8 +91,8 @@ pub(crate) trait RecvLoop: Sync + 'static { continue; } - let has_cont = (size & CHUNK_HAS_CONTINUATION) != 0; - let is_error = (size & ERROR_MARKER) != 0; + let has_cont = (size & CHUNK_FLAG_HAS_CONTINUATION) != 0; + let is_error = (size & CHUNK_FLAG_ERROR) != 0; let size = (size & CHUNK_LENGTH_MASK) as usize; let mut next_slice = vec![0; size as usize]; read.read_exact(&mut next_slice[..]).await?; |