Skip to content

Commit

Permalink
fix: use anyhow instead of failure in tests as well
Browse files Browse the repository at this point in the history
  • Loading branch information
onnovalkering committed Aug 19, 2021
1 parent ea4c76e commit 4db80bd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/common.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
use anyhow::Result;
use cwl::v11::CwlDocument;
use cwl::v11_clt::CommandLineTool;
use cwl::v11_wf::Workflow;
use std::fs::File;
use std::io::BufReader;

type FResult<T> = Result<T, failure::Error>;

#[allow(dead_code)]
pub fn load(path: &str) -> FResult<CwlDocument> {
pub fn load(path: &str) -> Result<CwlDocument> {
let file = File::open(path).unwrap();
let buf_reader = BufReader::new(file);

Expand Down

0 comments on commit 4db80bd

Please sign in to comment.