Skip to content

Commit

Permalink
Formatting + clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
orf committed Nov 7, 2023
1 parent 39e59c6 commit a859eed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ fn execute_cmd(

/// Run `git fetch` on all our repositories
fn fetch(workspace: &Path, threads: usize) -> anyhow::Result<()> {
let cmd = vec![
let cmd = [
"fetch",
"--all",
"--prune",
Expand Down
4 changes: 1 addition & 3 deletions src/providers/github.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,7 @@ impl Provider for GithubProvider {
.with_context(|| "Missing GITHUB_TOKEN environment variable")?;

let auth_header = match github_token.as_str() {
"none" => {
"none".to_string()
},
"none" => "none".to_string(),
token => {
format!("Bearer {}", token)
}
Expand Down

0 comments on commit a859eed

Please sign in to comment.