diff options
| author | Xe Iaso <me@xeiaso.net> | 2023-08-21 21:25:29 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2023-08-21 21:25:29 -0400 |
| commit | 07c85063594d3db55dd910285dacf4605564715c (patch) | |
| tree | 1423b67d625d042c326343a58cb57fc00e9cd7bf /lib/mi/src | |
| parent | ad1bc3c50ab5b0ca4acab5a22a71698128a0c879 (diff) | |
| download | xesite-07c85063594d3db55dd910285dacf4605564715c.tar.xz xesite-07c85063594d3db55dd910285dacf4605564715c.zip | |
lib/mi: clippy fixes
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'lib/mi/src')
| -rw-r--r-- | lib/mi/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mi/src/lib.rs b/lib/mi/src/lib.rs index 6ac2620..33bfed0 100644 --- a/lib/mi/src/lib.rs +++ b/lib/mi/src/lib.rs @@ -20,11 +20,11 @@ impl Client { let mut headers = header::HeaderMap::new(); headers.insert( header::AUTHORIZATION, - header::HeaderValue::from_str(&token.clone())?, + header::HeaderValue::from_str(&token)?, ); let cli = reqwest::Client::builder() - .user_agent(&format!("{} {}", user_agent, USER_AGENT_BASE)) + .user_agent(format!("{} {}", user_agent, USER_AGENT_BASE)) .default_headers(headers) .build()?; |
