From 9bec3af8a0a0a53722a6a0fd77a805131707416a Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 18 May 2021 14:25:57 +0200 Subject: Fix typo in fn name Signed-off-by: Matthias Beyer --- src/commands/db.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/commands/db.rs') diff --git a/src/commands/db.rs b/src/commands/db.rs index d602be0..c38744b 100644 --- a/src/commands/db.rs +++ b/src/commands/db.rs @@ -312,7 +312,7 @@ fn submit(conn_cfg: DbConnectionConfig<'_>, matches: &ArgMatches) -> Result<()> Ok(vec![ job.uuid.to_string().cyan(), - match is_job_successful(job)? { + match is_job_successfull(job)? { Some(true) => "Success".green(), Some(false) => "Error".red(), None => "Unknown".yellow(), @@ -460,7 +460,7 @@ fn jobs(conn_cfg: DbConnectionConfig<'_>, matches: &ArgMatches) -> Result<()> { .into_iter() .rev() // required for the --limit implementation .map(|(job, submit, ep, package)| { - let success = is_job_successful(&job)? + let success = is_job_successfull(&job)? .map(|b| if b { "yes" } else { "no" }) .map(String::from) .unwrap_or_else(|| String::from("unknown")); @@ -728,7 +728,7 @@ fn releases(conn_cfg: DbConnectionConfig<'_>, config: &Configuration, matches: & /// Check if a job is successful /// /// Returns Ok(None) if cannot be decided -fn is_job_successful(job: &models::Job) -> Result> { +fn is_job_successfull(job: &models::Job) -> Result> { crate::log::ParsedLog::from_str(&job.log_text).map(|pl| pl.is_successfull()) } -- cgit v1.2.3