Skip to content

Commit 6fcc877

Browse files
committed
fix: format code and resolve reqwest version conflict
1 parent a7064d9 commit 6fcc877

3 files changed

Lines changed: 20 additions & 144 deletions

File tree

backend/Cargo.lock

Lines changed: 0 additions & 135 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,4 @@ dotenvy = "0.15"
4343

4444
[dev-dependencies]
4545
tokio = { version = "1.0", features = ["macros"] }
46-
reqwest = { version = "0.11", features = ["json"] }
4746
hyper = { version = "0.14", features = ["full"] }

backend/src/infrastructure/repositories/postgres_github_issue_repository.rs

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,26 @@ impl GithubIssueRepository for PostgresGithubIssueRepository {
6969
repo_id: i64,
7070
github_issue_id: i64,
7171
) -> Result<Option<GithubIssue>, Box<dyn std::error::Error>> {
72-
let row = sqlx::query_as::<_, (
73-
i64, i64, String, i32, String, String,
74-
serde_json::Value, i32, serde_json::Value, String,
75-
chrono::DateTime<chrono::Utc>,
76-
Option<chrono::DateTime<chrono::Utc>>,
77-
bool, Option<String>,
78-
chrono::DateTime<chrono::Utc>,
79-
)>(
72+
let row = sqlx::query_as::<
73+
_,
74+
(
75+
i64,
76+
i64,
77+
String,
78+
i32,
79+
String,
80+
String,
81+
serde_json::Value,
82+
i32,
83+
serde_json::Value,
84+
String,
85+
chrono::DateTime<chrono::Utc>,
86+
Option<chrono::DateTime<chrono::Utc>>,
87+
bool,
88+
Option<String>,
89+
chrono::DateTime<chrono::Utc>,
90+
),
91+
>(
8092
r#"
8193
SELECT repo_id, github_issue_id, repo, number, title, state,
8294
labels, points, assignee_logins, html_url,

0 commit comments

Comments
 (0)