Repository navigation
Commit 2e6f97b
Compare checksum slices explicitly under feature unification
When Cargo feature unification enables hybrid-array/subtle, the MD5 output has an array-specific ConstantTimeEq implementation. Method resolution then expects an array reference, but the supplied digest is a byte slice, so compilation fails. Convert the output to a slice before comparing to select the slice implementation consistently and preserve the constant-time comparison.1 parent 1fff05f commit 2e6f97b
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
153 | 157 | | |
154 | 158 | | |
155 | 159 | | |
| |||
0 commit comments