Skip to content

Commit

Permalink
chore: fix some error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
raklaptudirm committed Jan 3, 2025
1 parent a2c151e commit 68e84e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions games/src/interface/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub trait RepresentableType<B: Into<usize>>:

#[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),
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 68e84e3

Please sign in to comment.