Skip to content

Commit

Permalink
quiet some Rust compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraettinger committed Sep 5, 2024
1 parent 6acee5b commit 1234e04
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion crates/agent/src/controllers/handler.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use agent_sql::controllers::{dequeue, update};
use anyhow::Context;
use chrono::{DateTime, Utc};

use crate::{
controlplane::{ControlPlane, PGControlPlane},
Expand Down
1 change: 1 addition & 0 deletions crates/agent/src/controllers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ impl Status {

/// Selects the smallest next run from among the arguments, returning `None`
/// only if all `next_runs` are `None`.
#[allow(dead_code)]
fn reduce_next_run(next_runs: &[Option<NextRun>]) -> Option<NextRun> {
let mut min: Option<NextRun> = None;
for next_run in next_runs {
Expand Down
1 change: 1 addition & 0 deletions crates/agent/src/jobs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ where
Ok(status)
}

#[allow(dead_code)]
async fn read_stdout(mut reader: async_process::ChildStdio) -> Result<Vec<u8>, Error> {
let mut buffer = Vec::new();
let _ = tokio::io::copy(&mut reader, &mut buffer)
Expand Down

0 comments on commit 1234e04

Please sign in to comment.