diff --git a/games/src/interface/mod.rs b/games/src/interface/mod.rs index b51536f..9d8cc86 100644 --- a/games/src/interface/mod.rs +++ b/games/src/interface/mod.rs @@ -69,7 +69,7 @@ pub trait RepresentableType>: #[derive(Error, Debug)] pub enum TypeParseError { - #[error("invalid {0} identifier string")] + #[error("invalid string representation for {0}")] StrError(String), #[error("invalid integer representation for {0}")] RangeError(String), @@ -544,7 +544,7 @@ macro_rules! representable_type { if value as usize >= Self::N { Err( $crate::interface::TypeParseError::RangeError( - "stringify!($type).to_string()".to_string() + stringify!($type).to_string() ) ) } else {