diff --git a/src/file.rs b/src/file.rs index b6d16b8..f33c5c4 100644 --- a/src/file.rs +++ b/src/file.rs @@ -42,7 +42,7 @@ impl std::fmt::Display for LoadError{ } impl std::error::Error for LoadError{} -pub fn load(path:&std::path::Path)->Result<(strafesnet_common::map::CompleteMap,strafesnet_deferred_loader::texture::Textures),LoadError>{ +pub fn load>(path:P)->Result<(strafesnet_common::map::CompleteMap,strafesnet_deferred_loader::texture::Textures),LoadError>{ //blocking because it's simpler... let file=std::fs::File::open(path).map_err(LoadError::File)?; match read(file).map_err(LoadError::ReadError)?{