Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Jul 17, 2024
1 parent 52f976b commit 0d4ea68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ext/fetch/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,10 @@ pub struct Client {

type Connector = proxy::ProxyConnector<HttpsConnector<HttpConnector>>;

// clippy is wrong here
#[allow(clippy::declare_interior_mutable_const)]
const STAR_STAR: HeaderValue = HeaderValue::from_static("*/*");

impl Client {
pub async fn send(
self,
Expand All @@ -1071,7 +1075,6 @@ impl Client {
.entry(USER_AGENT)
.or_insert_with(|| self.user_agent.clone());

const STAR_STAR: HeaderValue = HeaderValue::from_static("*/*");
req.headers_mut().entry(ACCEPT).or_insert(STAR_STAR);

if let Some(auth) = self.proxies.http_forward_auth(req.uri()) {
Expand Down

0 comments on commit 0d4ea68

Please sign in to comment.