File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ pub struct HttpDate {
38
38
/// Supports the preferred IMF-fixdate and the legacy RFC 805 and
39
39
/// ascdate formats. Two digit years are mapped to dates between
40
40
/// 1970 and 2069.
41
+ #[ allow( dead_code) ]
41
42
pub ( crate ) fn parse_http_date ( s : & str ) -> Result < SystemTime , Error > {
42
43
s. parse :: < HttpDate > ( ) . map ( |d| d. into ( ) )
43
44
}
Original file line number Diff line number Diff line change @@ -22,10 +22,12 @@ pub struct TestCase {
22
22
}
23
23
24
24
impl TestCase {
25
+ #[ allow( dead_code) ]
25
26
pub async fn new_server ( request_file_path : & str , response_file_path : & str ) -> TestCase {
26
27
Self :: new ( Direction :: Server , request_file_path, response_file_path) . await
27
28
}
28
29
30
+ #[ allow( dead_code) ]
29
31
pub async fn new_client ( request_file_path : & str , response_file_path : & str ) -> TestCase {
30
32
Self :: new ( Direction :: Client , request_file_path, response_file_path) . await
31
33
}
You can’t perform that action at this time.
0 commit comments