Skip to content

Commit

Permalink
improve logs
Browse files Browse the repository at this point in the history
  • Loading branch information
glebpom committed Jul 20, 2023
1 parent f5e9441 commit 1066bcf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions src/header/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,10 @@ impl<T> HeaderMap<T> {
///
/// More capacity than requested may be allocated.
///
/// # Errors
///
/// This function may return an error if `HeaderMap` exceeds max capacity
///
/// # Examples
///
/// ```
Expand Down Expand Up @@ -1222,6 +1226,10 @@ impl<T> HeaderMap<T> {
/// The key is not updated, though; this matters for types that can be `==`
/// without being identical.
///
/// # Errors
///
/// This function may return an error if `HeaderMap` exceeds max capacity
///
/// # Examples
///
/// ```
Expand Down Expand Up @@ -1358,6 +1366,10 @@ impl<T> HeaderMap<T> {
/// updated, though; this matters for types that can be `==` without being
/// identical.
///
/// # Errors
///
/// This function may return an error if `HeaderMap` exceeds max capacity
///
/// # Examples
///
/// ```
Expand Down Expand Up @@ -2452,6 +2464,10 @@ impl<'a, T> Entry<'a, T> {
///
/// Returns a mutable reference to the **first** value in the entry.
///
/// # Errors
///
/// This function may return an error if `HeaderMap` exceeds max capacity
///
/// # Examples
///
/// ```
Expand Down
2 changes: 1 addition & 1 deletion src/header/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ mod from_header_name_tests {
map.insert(
name::ACCEPT,
name::HeaderName::from_bytes(b"hello-world").unwrap().into(),
).unwrap();
);

assert_eq!(
map.get(name::UPGRADE).unwrap(),
Expand Down

0 comments on commit 1066bcf

Please sign in to comment.