treewide: format with nightly rustfmt; auto-fix Clippy lints
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I15d9215ab506b37954468d99746098326a6a6964
This commit is contained in:
parent
10a118bd50
commit
73919f2f9e
30 changed files with 144 additions and 151 deletions
|
|
@ -3,7 +3,7 @@ use std::path::{Path, PathBuf};
|
|||
use fc_common::error::Result;
|
||||
use git2::Repository;
|
||||
|
||||
/// Clone or fetch a repository. Returns (repo_path, commit_hash).
|
||||
/// Clone or fetch a repository. Returns (`repo_path`, `commit_hash`).
|
||||
///
|
||||
/// If `branch` is `Some`, resolve `refs/remotes/origin/<branch>` instead of
|
||||
/// HEAD.
|
||||
|
|
|
|||
|
|
@ -72,8 +72,8 @@ pub fn parse_eval_output(stdout: &str) -> EvalResult {
|
|||
}
|
||||
|
||||
/// Evaluate nix expressions and return discovered jobs.
|
||||
/// If flake_mode is true, uses nix-eval-jobs with --flake flag.
|
||||
/// If flake_mode is false, evaluates a legacy expression file.
|
||||
/// If `flake_mode` is true, uses nix-eval-jobs with --flake flag.
|
||||
/// If `flake_mode` is false, evaluates a legacy expression file.
|
||||
#[tracing::instrument(skip(config, inputs), fields(flake_mode, nix_expression))]
|
||||
pub async fn evaluate(
|
||||
repo_path: &Path,
|
||||
|
|
@ -286,7 +286,7 @@ async fn evaluate_with_nix_eval(
|
|||
let system = drv_val
|
||||
.get("system")
|
||||
.and_then(|v| v.as_str())
|
||||
.map(|s| s.to_string());
|
||||
.map(std::string::ToString::to_string);
|
||||
jobs.push(NixJob {
|
||||
name: name.clone(),
|
||||
drv_path: drv_path.clone(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue