Skip to content

Commit ca1f834

Browse files
Carbonhellsyphar
authored andcommitted
chore: fmt
1 parent b18b564 commit ca1f834

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/build_queue.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ impl BuildQueueMetrics {
4040
}
4141
}
4242

43-
44-
4543
pub(crate) const PRIORITY_DEFAULT: i32 = 0;
4644
/// Used for workspaces to avoid blocking the queue (done through the cratesfyi CLI, not used in code)
4745
#[allow(dead_code)]
@@ -818,9 +816,11 @@ FROM crates AS c
818816
AND b.rustc_nightly_date < $2
819817
820818
821-
"#, start_nightly_date, end_nightly_date
819+
"#,
820+
start_nightly_date,
821+
end_nightly_date
822822
)
823-
.fetch(&mut *conn);
823+
.fetch(&mut *conn);
824824

825825
let mut results_count = 0;
826826
while let Some(row) = results.next().await {
@@ -918,7 +918,7 @@ mod tests {
918918
"rustc 1.84.0-nightly (e7c0d2750 {})",
919919
nightly.format("%Y-%m-%d")
920920
)
921-
.as_str(),
921+
.as_str(),
922922
)
923923
.build_status(BuildStatus::Failure),
924924
])
@@ -980,7 +980,7 @@ mod tests {
980980
"rustc 1.84.0-nightly (e7c0d2750 {})",
981981
nightly.format("%Y-%m-%d")
982982
)
983-
.as_str(),
983+
.as_str(),
984984
)
985985
.build_status(BuildStatus::Failure),
986986
])
@@ -1035,7 +1035,7 @@ mod tests {
10351035
"rustc 1.84.0-nightly (e7c0d2750 {})",
10361036
nightly.format("%Y-%m-%d")
10371037
)
1038-
.as_str(),
1038+
.as_str(),
10391039
)
10401040
.build_status(BuildStatus::Failure),
10411041
])

src/utils/queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Utilities for interacting with the build queue
2+
use crate::build_queue::PRIORITY_DEFAULT;
23
use crate::error::Result;
34
use futures_util::stream::TryStreamExt;
4-
use crate::build_queue::PRIORITY_DEFAULT;
55

66
/// Get the build queue priority for a crate, returns the matching pattern too
77
pub async fn list_crate_priorities(conn: &mut sqlx::PgConnection) -> Result<Vec<(String, i32)>> {

0 commit comments

Comments
 (0)