Skip to content

Commit

Permalink
eval-cache: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Jan 28, 2025
1 parent e987a00 commit a62fa38
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions devenv-eval-cache/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use sqlx::SqlitePool;
use std::io::{self, BufRead, BufReader, Read};
use std::path::{Path, PathBuf};
use std::process::{self, Command, Stdio};
use std::sync::Arc;
use std::time::{SystemTime, UNIX_EPOCH};
use thiserror::Error;
use tracing::{debug, trace};
Expand Down Expand Up @@ -148,14 +149,13 @@ impl<'a> CachedCommand<'a> {
let mut sources = Vec::new();

for op in ops.into_iter() {
if let Op::GetEnv { name } = op {
if let Ok(env_input) = EnvInputDesc::new(name) {
env_inputs.push(env_input);
match op {
Op::GetEnv { name } => {
if let Ok(env_input) = EnvInputDesc::new(name) {
env_inputs.push(env_input);
}
}
continue;
}

match op {
Op::CopiedSource { source, .. }
| Op::EvaluatedFile { source }
| Op::ReadFile { source }
Expand All @@ -168,6 +168,7 @@ impl<'a> CachedCommand<'a> {
{
sources.push(source);
}

_ => {}
}
}
Expand Down Expand Up @@ -416,7 +417,6 @@ async fn query_cached_output(
.await
.map_err(CommandError::Sqlx)?;

use std::sync::Arc;
let mut inputs = files
.into_iter()
.map(Input::from)
Expand Down

0 comments on commit a62fa38

Please sign in to comment.