Skip to content

Commit 6fed342

Browse files
use byte string literal in marker assertion
1 parent dcf0f03 commit 6fed342

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

soroban-spec/src/shaking.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,7 @@ mod tests {
218218

219219
// Assert exact marker bytes so that any change to the marker
220220
// format (prefix, hash algorithm, truncation length) is caught.
221-
assert_eq!(
222-
marker,
223-
[0x53, 0x70, 0x45, 0x63, 0x56, 0x31, 0xf5, 0xbe, 0x3f, 0x49, 0x6f, 0x7b, 0xbc, 0xb6]
224-
);
221+
assert_eq!(marker, *b"SpEcV1\xf5\xbe\x3f\x49\x6f\x7b\xbc\xb6");
225222

226223
// Same input produces same marker
227224
let marker2 = generate_marker_for_xdr(spec_xdr);

0 commit comments

Comments
 (0)