From a6a94f7f1d95990b6f05b4191525603568899352 Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Thu, 21 Jan 2021 14:07:47 -0700 Subject: [PATCH] Prettier test --- crates/bevy_asset/src/asset_server.rs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/crates/bevy_asset/src/asset_server.rs b/crates/bevy_asset/src/asset_server.rs index fdd48af767d66..e6be9c114e39e 100644 --- a/crates/bevy_asset/src/asset_server.rs +++ b/crates/bevy_asset/src/asset_server.rs @@ -543,16 +543,13 @@ mod test { #[test] fn multiple_extensions_no_loader() { let asset_server = setup(); - let t = asset_server.get_path_asset_loader("test.v1.2.3.pong"); - let correct_extension = - if let Some(AssetServerError::MissingAssetLoader(Some(ext))) = t.err() { - ext == "pong" - } else { - false - }; - - assert!(correct_extension); + assert!( + match asset_server.get_path_asset_loader("test.v1.2.3.pong") { + Err(AssetServerError::MissingAssetLoader(Some(ext))) => ext == "pong", + _ => false, + } + ) } #[test]