hyperium / http

Rust HTTP types
Apache License 2.0
1.12k stars 283 forks source link

Resolve arith overflow on with_capacity #628

Closed HeeillWang closed 8 months ago

HeeillWang commented 9 months ago

resolve #626 #627

WhyNotHugo commented 9 months ago

Function docstring should clarify this function panics:

/// # Panics
/// 
/// Requested capacity too large: would overflow `usize`.
HeeillWang commented 9 months ago

Function docstring should clarify this function panics:

/// # Panics
/// 
/// Requested capacity too large: would overflow `usize`.

reflected!