We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f33db55 commit 1d6074cCopy full SHA for 1d6074c
src/v3/mod.rs
@@ -273,7 +273,7 @@ impl Sender {
273
/// Configure the necessary headers to send an API request.
274
pub fn get_headers(api_key: &str) -> Result<HeaderMap, InvalidHeaderValue> {
275
let mut headers = HeaderMap::with_capacity(3);
276
- let mut auth_value = HeaderValue::from_str(&format!("Bearer {}", api_key))?;
+ let mut auth_value = HeaderValue::from_str(&format!("Bearer {api_key}"))?;
277
auth_value.set_sensitive(true);
278
headers.insert(header::AUTHORIZATION, auth_value);
279
headers.insert(
0 commit comments