treewide: format with nightly rustfmt; auto-fix Clippy lints
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: If4fd0511087dbaa65afc56a34d7c2f166a6a6964
This commit is contained in:
parent
fe45fff3f3
commit
3a03cf7b3e
26 changed files with 222 additions and 161 deletions
|
|
@ -146,7 +146,7 @@ pub struct SubStep {
|
|||
|
||||
/// Parse a single nix internal JSON log line (`@nix {...}`).
|
||||
/// Returns `Some(action, drv_path)` if the line contains a derivation action.
|
||||
#[must_use]
|
||||
#[must_use]
|
||||
pub fn parse_nix_log_line(line: &str) -> Option<(&'static str, String)> {
|
||||
let json_str = line.strip_prefix("@nix ")?.trim();
|
||||
let parsed: serde_json::Value = serde_json::from_str(json_str).ok()?;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ pub struct WorkerPool {
|
|||
|
||||
impl WorkerPool {
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
#[must_use]
|
||||
#[must_use]
|
||||
pub fn new(
|
||||
db_pool: PgPool,
|
||||
workers: usize,
|
||||
|
|
@ -476,8 +476,10 @@ async fn run_build(
|
|||
push_to_cache(&build_result.output_paths, store_uri).await;
|
||||
}
|
||||
|
||||
let primary_output =
|
||||
build_result.output_paths.first().map(std::string::String::as_str);
|
||||
let primary_output = build_result
|
||||
.output_paths
|
||||
.first()
|
||||
.map(std::string::String::as_str);
|
||||
|
||||
repo::builds::complete(
|
||||
pool,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue