This commit is contained in:
nora 2023-03-07 14:18:23 +01:00
parent b4ac40748d
commit b3d4232a00
7 changed files with 0 additions and 754 deletions

View file

@ -7,8 +7,6 @@ impl From<Option<u64>> for DecodedLength {
loop {}
}
}
#[cfg(any(feature = "http1", feature = "http2", test))]
const MAX_LEN: u64 = std::u64::MAX - 2;
impl DecodedLength {
pub(crate) const CLOSE_DELIMITED: DecodedLength = DecodedLength(::std::u64::MAX);
pub(crate) const CHUNKED: DecodedLength = DecodedLength(::std::u64::MAX - 1);
@ -58,15 +56,3 @@ impl fmt::Display for DecodedLength {
loop {}
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn sub_if_known() {
loop {}
}
#[test]
fn sub_if_chunked() {
loop {}
}
}