Skip to content

Commit

Permalink
Remove extra spaces from error
Browse files Browse the repository at this point in the history
  • Loading branch information
oscartbeaumont committed Aug 19, 2023
1 parent f00eac1 commit 841afee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/datatype/enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl EnumType {
EnumVariant::Named(_) => Ok(()),
EnumVariant::Unnamed(_) => Err(ExportError::InvalidType(
impl_location,
"`EnumRepr::Untagged` with ` EnumVariant::Unnamed` is invalid!",
"`EnumRepr::Untagged` with `EnumVariant::Unnamed` is invalid!",
)),
})?;
}
Expand All @@ -73,7 +73,7 @@ impl EnumType {
TupleType::Named { fields, .. } if fields.len() == 1 => Ok(()),
TupleType::Named { .. } => Err(ExportError::InvalidType(
impl_location,
"`EnumRepr::External` with ` EnumVariant::Unnamed` containing more than a single field is invalid!",
"`EnumRepr::External` with `EnumVariant::Unnamed` containing more than a single field is invalid!",
)),
},
EnumVariant::Named(_) => Ok(()),
Expand All @@ -84,7 +84,7 @@ impl EnumType {
EnumVariant::Named(_) => Ok(()),
EnumVariant::Unnamed(_) => Err(ExportError::InvalidType(
impl_location,
"`EnumRepr::Internal` with ` EnumVariant::Unnamed` is invalid!",
"`EnumRepr::Internal` with `EnumVariant::Unnamed` is invalid!",
)),
},
}
Expand Down

0 comments on commit 841afee

Please sign in to comment.