Skip to content

Commit

Permalink
fixup fmt
Browse files Browse the repository at this point in the history
Signed-off-by: tison <wander4096@gmail.com>
  • Loading branch information
tisonkun committed Jun 21, 2024
1 parent 253e796 commit b6fe9eb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/build/github.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! This module is in charge of collecting contributions from GitHub.

use crate::build::db;
use crate::build::settings::Settings;
use anyhow::{bail, ensure, Context, Result};
use chrono::DateTime;
use deadpool::unmanaged::{Object, Pool};
Expand All @@ -18,7 +19,6 @@ use std::{
};
use tempfile::NamedTempFile;
use tracing::{debug, instrument, trace};
use crate::build::settings::Settings;

/// GitHub API base url.
const API_BASE_URL: &str = "https://api.github.com";
Expand Down Expand Up @@ -71,7 +71,10 @@ impl Collector {
}
for repo in &settings.repositories {
let pair = repo.split('/').collect::<Vec<&str>>();
ensure!(pair.len() == 2, "repository format must be owner/repo, found: {repo}");
ensure!(
pair.len() == 2,
"repository format must be owner/repo, found: {repo}"
);
repositories.push((pair[0].to_string(), pair[1].to_string()));
}

Expand Down

0 comments on commit b6fe9eb

Please sign in to comment.