Skip to content

Commit a859eed

Browse files
committed
Formatting + clippy
1 parent 39e59c6 commit a859eed

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ fn execute_cmd(
331331

332332
/// Run `git fetch` on all our repositories
333333
fn fetch(workspace: &Path, threads: usize) -> anyhow::Result<()> {
334-
let cmd = vec![
334+
let cmd = [
335335
"fetch",
336336
"--all",
337337
"--prune",

src/providers/github.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,7 @@ impl Provider for GithubProvider {
144144
.with_context(|| "Missing GITHUB_TOKEN environment variable")?;
145145

146146
let auth_header = match github_token.as_str() {
147-
"none" => {
148-
"none".to_string()
149-
},
147+
"none" => "none".to_string(),
150148
token => {
151149
format!("Bearer {}", token)
152150
}

0 commit comments

Comments
 (0)