Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions crates/api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
use std::time::Duration;

use poem::{
endpoint::BoxEndpoint, middleware, web::Redirect, EndpointExt, FromRequest, Request,
RequestBody, Route,
EndpointExt, FromRequest, Request, RequestBody, Route, endpoint::BoxEndpoint, middleware,
web::Redirect,
};
use poem_openapi::{param, payload, ApiResponse, OpenApi, OpenApiService};
use poem_openapi::{ApiResponse, OpenApi, OpenApiService, param, payload};
use serde::{Deserialize, Serialize};
use sqlx::{
pool::{PoolConnection, PoolOptions},
Pool, Postgres,
pool::{PoolConnection, PoolOptions},
};

use pr_tracker_store::{ForPrError, Landing, PrNumberNonPositiveError};
Expand Down
2 changes: 1 addition & 1 deletion crates/api/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
use anyhow::Context;
use confique::Config;
use poem::{
listener::{Listener, TcpListener},
Server,
listener::{Listener, TcpListener},
};
use pr_tracker_api::endpoint;
use pr_tracker_api_config::Environment;
Expand Down
4 changes: 2 additions & 2 deletions crates/db-context/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use fragile_child::{FragileChild, SpawnFragileChild};
use sqlx::{Connection, PgConnection, PgPool};
use std::fs::{create_dir_all, OpenOptions};
use std::fs::{OpenOptions, create_dir_all};
use std::os::unix::net::UnixDatagram;
use std::{process::Command, time::Duration};
use tempfile::{tempdir, TempDir};
use tempfile::{TempDir, tempdir};

use camino::{Utf8Path, Utf8PathBuf};

Expand Down
2 changes: 1 addition & 1 deletion crates/fetcher/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![warn(clippy::pedantic)]

use anyhow::{ensure, Context};
use anyhow::{Context, ensure};
use confique::Config;
use pr_tracker_fetcher::{github::GitHubGraphqlClient, run};
use pr_tracker_fetcher_config::Environment;
Expand Down
4 changes: 3 additions & 1 deletion crates/store/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,9 @@ impl Landing {

let values = values.strip_suffix(',').expect("because non-empty");

let batch = format!("INSERT INTO landings(github_pr, branch_id) VALUES {values} ON CONFLICT (github_pr, branch_id) DO NOTHING");
let batch = format!(
"INSERT INTO landings(github_pr, branch_id) VALUES {values} ON CONFLICT (github_pr, branch_id) DO NOTHING"
);

sqlx::query(&batch).execute(connection).await?;

Expand Down
36 changes: 18 additions & 18 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.