Skip to content

Commit 4fd51c8

Browse files
committed
allow dead code
1 parent 70a365e commit 4fd51c8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/date.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ pub struct HttpDate {
3838
/// Supports the preferred IMF-fixdate and the legacy RFC 805 and
3939
/// ascdate formats. Two digit years are mapped to dates between
4040
/// 1970 and 2069.
41+
#[allow(dead_code)]
4142
pub(crate) fn parse_http_date(s: &str) -> Result<SystemTime, Error> {
4243
s.parse::<HttpDate>().map(|d| d.into())
4344
}

tests/common/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ pub struct TestCase {
2222
}
2323

2424
impl TestCase {
25+
#[allow(dead_code)]
2526
pub async fn new_server(request_file_path: &str, response_file_path: &str) -> TestCase {
2627
Self::new(Direction::Server, request_file_path, response_file_path).await
2728
}
2829

30+
#[allow(dead_code)]
2931
pub async fn new_client(request_file_path: &str, response_file_path: &str) -> TestCase {
3032
Self::new(Direction::Client, request_file_path, response_file_path).await
3133
}

0 commit comments

Comments
 (0)