refactor(lib): Import tracing macros per-module

Instead of one #[macro_use] at the crate root.
This commit is contained in:
Jonas Platte
2021-08-29 14:31:20 +02:00
committed by Sean McArthur
parent 165ada34a3
commit a81c44f2c8
23 changed files with 35 additions and 16 deletions

View File

@@ -50,6 +50,8 @@ impl DecodedLength {
/// Checks the `u64` is within the maximum allowed for content-length.
#[cfg(any(feature = "http1", feature = "http2"))]
pub(crate) fn checked_new(len: u64) -> Result<Self, crate::error::Parse> {
use tracing::warn;
if len <= MAX_LEN {
Ok(DecodedLength(len))
} else {