We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c56013 commit 07913adCopy full SHA for 07913ad
1 file changed
src/updates/mod.rs
@@ -139,8 +139,8 @@ impl UpdateBackend {
139
.current_version(current_str);
140
141
let auth_token = option_env!("GITHUB_AUTH_TOKEN");
142
- if let Some(token) = auth_token {
143
- update_builder.auth_token(token);
+ if let Some(auth_token) = auth_token {
+ update_builder.auth_token(auth_token);
144
}
145
146
let releases = update_builder.build()?.get_latest_releases(current_str)?;
@@ -199,7 +199,7 @@ impl UpdateBackend {
199
);
200
201
202
203
headers.insert(
204
http::header::AUTHORIZATION,
205
(String::from("token ") + auth_token).parse().unwrap(),
0 commit comments