diff --git a/schemsearch-cli/src/sinks.rs b/schemsearch-cli/src/sinks.rs index f42d4f5..e19a2f8 100644 --- a/schemsearch-cli/src/sinks.rs +++ b/schemsearch-cli/src/sinks.rs @@ -40,7 +40,7 @@ impl FromStr for OutputSink { fn from_str(s: &str) -> Result { match s { "std" => Ok(OutputSink::Stdout), - "err" => OK(OutputSink::Stderr), + "err" => Ok(OutputSink::Stderr), _ => Ok(OutputSink::File(s.to_string())) } } diff --git a/schemsearch-lib/src/lib.rs b/schemsearch-lib/src/lib.rs index 623c508..3b3b881 100644 --- a/schemsearch-lib/src/lib.rs +++ b/schemsearch-lib/src/lib.rs @@ -220,7 +220,7 @@ mod tests { println!("{:?}", matches); assert_eq!(matches.len(), 1); - assert_eq!(matches[0], (1, 0, 3, 1.0)); + assert_eq!(matches[0], Match { x: 1, y: 0, z: 3, percent: 1.0}); } #[test]