diff --git a/validation/src/check.rs b/validation/src/check.rs index 8ab33bc..c1751b3 100644 --- a/validation/src/check.rs +++ b/validation/src/check.rs @@ -432,7 +432,7 @@ impl<'a> ModelInfo<'a>{ } impl MapCheck<'_>{ - fn pass(self)->Result<MapInfoOwned,Self>{ + fn result(self)->Result<MapInfoOwned,String>{ match self{ MapCheck{ model_class:StringCheck(Ok(())), @@ -456,7 +456,7 @@ impl MapCheck<'_>{ game_id, }) }, - other=>Err(other), + other=>Err(other.to_string()), } } } @@ -638,7 +638,7 @@ impl crate::message_handler::MessageHandler{ let map_check=model_info.check(); // check the report, generate an error message if it fails the check - let status=map_check.pass().map_err(|e|e.to_string()); + let status=map_check.result(); Ok(CheckReportAndVersion{status,version}) }