diff --git a/tests/runtime/options.rs b/tests/runtime/options.rs index 20c09bc39..ca30185ac 100644 --- a/tests/runtime/options.rs +++ b/tests/runtime/options.rs @@ -11,16 +11,16 @@ impl test::options::test::Host for MyImports { assert!(a.is_none()); Ok(()) } - + fn option_none_result(&mut self) -> Result> { Ok(None) } - - fn option_some_param(&mut self, a: Option) -> Result<()> { + + fn option_some_param(&mut self, a: Option) -> Result<()> { assert_eq!(a, Some("foo".to_string())); Ok(()) } - + fn option_some_result(&mut self) -> Result> { Ok(Some("foo".to_string())) } @@ -28,7 +28,6 @@ impl test::options::test::Host for MyImports { fn option_roundtrip(&mut self, a: Option) -> Result> { Ok(a) } - } #[test] @@ -45,9 +44,15 @@ fn run_test(exports: Options, store: &mut Store>) -> Resu exports.call_test_imports(&mut *store)?; let exports = exports.test_options_test(); assert!(exports.call_option_none_result(&mut *store)?.is_none()); - assert_eq!(exports.call_option_some_result(&mut *store)?, Some("foo".to_string())); + assert_eq!( + exports.call_option_some_result(&mut *store)?, + Some("foo".to_string()) + ); exports.call_option_none_param(&mut *store, None)?; exports.call_option_some_param(&mut *store, Some("foo"))?; - assert_eq!(exports.call_option_roundtrip(&mut *store,Some("foo"))?, Some("foo".to_string())); + assert_eq!( + exports.call_option_roundtrip(&mut *store, Some("foo"))?, + Some("foo".to_string()) + ); Ok(()) }