From 97db90550ccb58fec3afb50404e694da04213134 Mon Sep 17 00:00:00 2001 From: Ranadeep Biswas Date: Thu, 26 Sep 2024 14:56:00 +0200 Subject: [PATCH] fix string_lit_as_bytes --- basecoin/store/src/avl/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/basecoin/store/src/avl/tests.rs b/basecoin/store/src/avl/tests.rs index 2e5c96e6..a1fffd2f 100644 --- a/basecoin/store/src/avl/tests.rs +++ b/basecoin/store/src/avl/tests.rs @@ -151,7 +151,7 @@ fn proof() { .expect("There should be a leaf in the proof"); let mut sha = Sha256::new(); sha.update(&leaf.prefix); - sha.update("B".as_bytes()); + sha.update(b"B"); sha.update([1]); let child_hash = sha.finalize(); // Apply first inner node transformations @@ -176,7 +176,7 @@ fn proof() { &ics_proof, &spec, &root.as_bytes().to_vec(), - "B".as_bytes(), + b"B", &[1] )); }