Skip to content

Commit 19b929f

Browse files
committed
Remove unused variables
1 parent 053a205 commit 19b929f

File tree

20 files changed

+39
-39
lines changed

20 files changed

+39
-39
lines changed

src/cache/age.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
use crate::headers::{Header, HeaderName, HeaderValue, Headers, ToHeaderValues, AGE};
1+
use crate::headers::{Header, HeaderName, HeaderValue, Headers, AGE};
22
use crate::Status;
33

44
use std::fmt::Debug;
5-
use std::option;
5+
66
use std::time::Duration;
77

88
/// HTTP `Age` header

src/cache/cache_control/cache_control.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
use headers::Header;
22

3-
use crate::headers::{HeaderName, HeaderValue, Headers, ToHeaderValues, CACHE_CONTROL};
3+
use crate::headers::{HeaderName, HeaderValue, Headers, CACHE_CONTROL};
44
use crate::{cache::CacheDirective, headers};
55

66
use std::fmt::{self, Debug, Write};
77
use std::iter::Iterator;
8-
use std::option;
8+
99
use std::slice;
1010

1111
/// A Cache-Control header.

src/cache/clear_site_data/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//! Clear browsing data (cookies, storage, cache) associated with the
22
//! requesting website
33
4-
use crate::headers::{self, HeaderName, HeaderValue, Headers, ToHeaderValues, CLEAR_SITE_DATA};
4+
use crate::headers::{self, HeaderName, HeaderValue, Headers, CLEAR_SITE_DATA};
55

66
use std::fmt::{self, Debug, Write};
77
use std::iter::Iterator;
8-
use std::option;
8+
99
use std::slice;
1010
use std::str::FromStr;
1111

src/conditional/etag.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
use crate::headers::{Header, HeaderName, HeaderValue, Headers, ToHeaderValues, ETAG};
1+
use crate::headers::{Header, HeaderName, HeaderValue, Headers, ETAG};
22
use crate::{Error, StatusCode};
33

44
use std::fmt::{self, Debug, Display};
5-
use std::option;
5+
66

77
/// HTTP Entity Tags.
88
///

src/conditional/if_match.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//! Apply the HTTP method if the ETag matches.
22
3-
use crate::headers::{HeaderName, HeaderValue, Headers, ToHeaderValues, IF_MATCH};
3+
use crate::headers::{HeaderName, HeaderValue, Headers, IF_MATCH};
44
use crate::{conditional::ETag, headers::Header};
55

66
use std::fmt::{self, Debug, Write};
77
use std::iter::Iterator;
8-
use std::option;
8+
99
use std::slice;
1010

1111
/// Apply the HTTP method if the ETag matches.

src/conditional/if_modified_since.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
use crate::headers::{Header, HeaderName, HeaderValue, Headers, ToHeaderValues, IF_MODIFIED_SINCE};
1+
use crate::headers::{Header, HeaderName, HeaderValue, Headers, IF_MODIFIED_SINCE};
22
use crate::utils::{fmt_http_date, parse_http_date};
33

44
use std::fmt::Debug;
5-
use std::option;
5+
66
use std::time::SystemTime;
77

88
/// Apply the HTTP method if the entity has been modified after the given

src/conditional/if_none_match.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
//! This is used to update caches or to prevent uploading a new resource when
44
//! one already exists.
55
6-
use crate::headers::{HeaderName, HeaderValue, Headers, ToHeaderValues, IF_NONE_MATCH};
6+
use crate::headers::{HeaderName, HeaderValue, Headers, IF_NONE_MATCH};
77
use crate::{conditional::ETag, headers::Header};
88

99
use std::fmt::{self, Debug, Write};
1010
use std::iter::Iterator;
11-
use std::option;
11+
1212
use std::slice;
1313

1414
/// Apply the HTTP method if the ETags do not match.

src/conditional/if_unmodified_since.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use crate::headers::{
2-
Header, HeaderName, HeaderValue, Headers, ToHeaderValues, IF_UNMODIFIED_SINCE,
2+
Header, HeaderName, HeaderValue, Headers, IF_UNMODIFIED_SINCE,
33
};
44
use crate::utils::{fmt_http_date, parse_http_date};
55

66
use std::fmt::Debug;
7-
use std::option;
7+
88
use std::time::SystemTime;
99

1010
/// Apply the HTTP method if the entity has not been modified after the

src/conditional/last_modified.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
use crate::headers::{Header, HeaderName, HeaderValue, Headers, ToHeaderValues, LAST_MODIFIED};
1+
use crate::headers::{Header, HeaderName, HeaderValue, Headers, LAST_MODIFIED};
22
use crate::utils::{fmt_http_date, parse_http_date};
33

44
use std::fmt::Debug;
5-
use std::option;
5+
66
use std::time::SystemTime;
77

88
/// The last modification date of a resource.

src/conditional/vary.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//! Apply the HTTP method if the ETag matches.
22
3-
use crate::headers::{Header, HeaderName, HeaderValue, Headers, ToHeaderValues, VARY};
3+
use crate::headers::{Header, HeaderName, HeaderValue, Headers, VARY};
44

55
use std::fmt::{self, Debug, Write};
66
use std::iter::Iterator;
7-
use std::option;
7+
88
use std::slice;
99
use std::str::FromStr;
1010

0 commit comments

Comments
 (0)