From 35ccc3fef4c345478be7696626a680faa2a3ee77 Mon Sep 17 00:00:00 2001 From: Andrew Frantz Date: Sat, 16 Dec 2023 12:45:36 -0500 Subject: [PATCH] chore:(derive/readlen): return an anyhow::Ok instead of plain Ok --- src/derive/command/readlen.rs | 2 +- src/derive/readlen/compute.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/derive/command/readlen.rs b/src/derive/command/readlen.rs index 5bce4cc..92bf47c 100644 --- a/src/derive/command/readlen.rs +++ b/src/derive/command/readlen.rs @@ -82,5 +82,5 @@ pub fn derive(args: DeriveReadlenArgs) -> anyhow::Result<()> { let output = serde_json::to_string_pretty(&result).unwrap(); print!("{}", output); - Ok(()) + anyhow::Ok(()) } diff --git a/src/derive/readlen/compute.rs b/src/derive/readlen/compute.rs index 183a4de..0e10c56 100644 --- a/src/derive/readlen/compute.rs +++ b/src/derive/readlen/compute.rs @@ -69,7 +69,7 @@ pub fn predict( result.consensus_read_length = Some(consensus_read_length); } - Ok(result) + anyhow::Ok(result) } #[cfg(test)]