Commit 2a8ee32
## Summary
Extract the 8 KiB buffered xxHash3_64 hashing logic from
`fingerprint.rs` and `glob_inputs.rs` into a shared `execute/hash.rs`
module.
> [!NOTE]
> I used Claude to find this duplication, reasoned with it
back-and-forth to see if it was really an improvement, concluded that it
was just a small one.
>
> Both call sites were identical, but strictly speaking the logic
doesn't need to be shared. If not desired, just close the PR.
## Test plan
- [x] `cargo test -p vite_task` — all 27 tests pass
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: branchseer <3612422+branchseer@users.noreply.github.com>
1 parent fa42ef9 commit 2a8ee32
File tree
4 files changed
+20
-36
lines changed- crates/vite_task/src/session/execute
4 files changed
+20
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
182 | 181 | | |
183 | 182 | | |
184 | 183 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | 184 | | |
200 | 185 | | |
201 | 186 | | |
| |||
251 | 236 | | |
252 | 237 | | |
253 | 238 | | |
254 | | - | |
| 239 | + | |
255 | 240 | | |
256 | 241 | | |
257 | 242 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 8 | + | |
14 | 9 | | |
15 | 10 | | |
16 | 11 | | |
| |||
114 | 109 | | |
115 | 110 | | |
116 | 111 | | |
117 | | - | |
118 | 112 | | |
119 | 113 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
| 114 | + | |
132 | 115 | | |
133 | 116 | | |
134 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
0 commit comments