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 {
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) ]
4142pub ( crate ) fn parse_http_date ( s : & str ) -> Result < SystemTime , Error > {
4243 s. parse :: < HttpDate > ( ) . map ( |d| d. into ( ) )
4344}
Original file line number Diff line number Diff line change @@ -22,10 +22,12 @@ pub struct TestCase {
2222}
2323
2424impl 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 }
You can’t perform that action at this time.
0 commit comments