diff --git a/bevy_asset_loader/examples/full_collection.rs b/bevy_asset_loader/examples/full_collection.rs index 0724666..65f30d5 100644 --- a/bevy_asset_loader/examples/full_collection.rs +++ b/bevy_asset_loader/examples/full_collection.rs @@ -3,6 +3,7 @@ use bevy::asset::LoadState; use bevy::prelude::*; use bevy::utils::HashMap; use bevy_asset_loader::prelude::*; +use std::path::Path; fn main() { App::new() @@ -166,13 +167,8 @@ fn expectations( LoadState::Loaded ); assert_eq!( - name, - asset_server - .get_handle_path(handle.clone()) - .unwrap() - .path() - .to_str() - .unwrap() + Path::new(name), + asset_server.get_handle_path(handle.clone()).unwrap().path() ); } assert_eq!(assets.mapped_files_typed.len(), 2); @@ -182,13 +178,8 @@ fn expectations( LoadState::Loaded ); assert_eq!( - name, - asset_server - .get_handle_path(handle.clone()) - .unwrap() - .path() - .to_str() - .unwrap() + Path::new(name), + asset_server.get_handle_path(handle.clone()).unwrap().path() ); }