Skip to content

Commit 5d0e0f1

Browse files
We can encode up to 30 characters, not 19
1 parent c42adc7 commit 5d0e0f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ impl fmt::Display for Sha {
202202
}
203203
Sha::Raw { length, bytes } => {
204204
let mut v = BitView::with_bytes(bytes);
205-
let mut decoded = [0; 19];
205+
let mut decoded = [0; 30];
206206
for idx in 0..length as usize {
207207
decoded[idx] = match v.read5() {
208208
0 => b'-',

0 commit comments

Comments
 (0)