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

Commit 22d54c4

Browse files
author
Joonas Koivunen
committed
refactor: allow dead_code StringError::new
1 parent cdc493d commit 22d54c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

http/src/v0/support.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ impl<D: std::fmt::Display> From<D> for StringError {
117117
}
118118

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

0 commit comments

Comments
 (0)