Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'xtask/src/release/changelog.rs')
| -rw-r--r-- | xtask/src/release/changelog.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/release/changelog.rs b/xtask/src/release/changelog.rs index 7df8f89dbe..4a06bb9ac0 100644 --- a/xtask/src/release/changelog.rs +++ b/xtask/src/release/changelog.rs @@ -25,7 +25,7 @@ pub(crate) fn get_changelog( let line = line.trim_start(); if let Some(pr_num) = parse_pr_number(&line) { let accept = "Accept: application/vnd.github.v3+json"; - let authorization = format!("Authorization: token {}", token); + let authorization = format!("Authorization: token {token}"); let pr_url = "https://api.github.com/repos/rust-lang/rust-analyzer/issues"; // we don't use an HTTPS client or JSON parser to keep the build times low @@ -57,7 +57,7 @@ pub(crate) fn get_changelog( PrKind::Other => &mut others, PrKind::Skip => continue, }; - writeln!(s, "* pr:{}[] {}", pr_num, l.message.as_deref().unwrap_or(&pr_title)).unwrap(); + writeln!(s, "* pr:{pr_num}[] {}", l.message.as_deref().unwrap_or(&pr_title)).unwrap(); } } |