Skip to content

Commit aeb6a50

Browse files
committed
use "=" instead of ":" in displayin enum variant tags
1 parent 8f5b071 commit aeb6a50

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust/src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl Display for Variant {
124124
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
125125
write!(f, "{}", self.name)?;
126126
if f.alternate() {
127-
f.write_str(":")?;
127+
f.write_str("=")?;
128128
Display::fmt(&self.tag, f)?;
129129
}
130130
Ok(())

rust/test_helpers/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ where T: Clone + PartialEq + Debug
143143
/// Test case failure representing failed byte string representation of the
144144
/// encoded enum variant
145145
#[display(
146-
"Enum variant `{enum_name}:{variant_name}` has incorrect encoding:
146+
"Enum variant `{enum_name}.{variant_name}` has incorrect encoding:
147147
\tExpected: {expected:02x?}
148148
\tActual: {actual:02x?}
149149
"

0 commit comments

Comments
 (0)