Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

Commit

Permalink
refactor: allow dead_code StringError::new
Browse files Browse the repository at this point in the history
  • Loading branch information
Joonas Koivunen committed Apr 15, 2020
1 parent cdc493d commit 22d54c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions http/src/v0/support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ impl<D: std::fmt::Display> From<D> for StringError {
}

impl StringError {
// Allowing this as dead since it hopefully doesn't stay unused for long
#[allow(dead_code)]
pub fn new(cow: Cow<'static, str>) -> Self {
StringError(cow)
}
Expand Down

0 comments on commit 22d54c4

Please sign in to comment.