Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 8c4f7d0

Browse files
authored
Merge pull request #1001 from JohnTitor/edition-2021
Migrate crates to edition 2021
2 parents ab09cb8 + 8ea51af commit 8c4f7d0

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "glacier"
33
version = "0.1.0"
44
authors = ["Pietro Albini <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

autofix/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "autofix"
33
version = "0.1.0"
44
authors = ["Alex Macleod <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

autofix/src/fix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub(crate) fn fix(test: &TestResult, config: &github::Config) -> Result<()> {
101101

102102
let head = repo.head()?.peel_to_commit()?;
103103
let sig = repo.signature()?;
104-
let tree = move_to_fixed(&repo, &test)?;
104+
let tree = move_to_fixed(&repo, test)?;
105105

106106
repo.commit(
107107
Some(&local_branch),

labeler/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "labeler"
33
version = "0.1.0"
44
authors = ["Yuki Okushi <[email protected]>"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

labeler/src/github.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ pub(crate) fn create_issue(
3434
body: &str,
3535
labels: &[&str],
3636
) -> Result<(), reqwest::Error> {
37-
let url = format!("https://api.github.com/repos/rust-lang/glacier/issues");
38-
3937
#[derive(Serialize)]
4038
struct NewIssue<'a> {
4139
title: &'a str,
@@ -44,7 +42,7 @@ pub(crate) fn create_issue(
4442
}
4543

4644
let resp = CLIENT
47-
.post(&url)
45+
.post("https://api.github.com/repos/rust-lang/glacier/issues")
4846
.bearer_auth(&config.token)
4947
.json(&NewIssue {
5048
title,
@@ -101,7 +99,7 @@ pub(crate) fn get_labeled_issues(
10199
.error_for_status()?
102100
.json()?;
103101

104-
let pages = get_result_length(&config, &url).unwrap();
102+
let pages = get_result_length(config, &url).unwrap();
105103

106104
if pages > 1 {
107105
for i in 2..=pages {

0 commit comments

Comments
 (0)