Skip to content

Commit 30eebef

Browse files
authored
fix(wasm): re-borrow in bisect.rs broke the wasm32 build on main (#75)
* fix(wasm): re-borrow dropped by token strip broke wasm32 build expected_const_words() iterates &[[f32;4]] — `&row` is &&[f32;4]. Only the wasm-check derivation compiles this cfg, and the concurrency group cancelled main's own ci runs for #73/#74 before wasm-check ran, so main went red silently; the #69/#56 merge branches surfaced it. * fix(clippy): needless_borrow in abcdn handler tests, second token-strip casualty Swept the whole workspace locally with clippy --all-targets -D warnings and fmt --check: clean. Same masking as the wasm break — clippy runs only on the x86 lane and main's ci runs for #73/#74 were concurrency-cancelled.
1 parent 641cef7 commit 30eebef

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

crate/src/abcdn/handlers/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ pub(super) async fn body_bytes(resp: axum::response::Response) -> Vec<u8> {
408408
}
409409

410410
pub(super) fn reason_of(resp: &axum::response::Response) -> Option<String> {
411-
hdr(&resp, super::lodjit::REASON_HEADER).map(str::to_string)
411+
hdr(resp, super::lodjit::REASON_HEADER).map(str::to_string)
412412
}
413413

414414
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]

crate/src/gpu/wgpu_bc7/bisect.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -510,13 +510,13 @@ fn expected_const_words() -> Vec<u32> {
510510
v.extend_from_slice(probe::weights3());
511511
v.extend_from_slice(probe::weights4());
512512
for row in probe::weights2x() {
513-
push_f32s(&mut v, &row);
513+
push_f32s(&mut v, row);
514514
}
515515
for row in probe::weights3x() {
516-
push_f32s(&mut v, &row);
516+
push_f32s(&mut v, row);
517517
}
518518
for row in probe::weights4x() {
519-
push_f32s(&mut v, &row);
519+
push_f32s(&mut v, row);
520520
}
521521
for &b in probe::partition2().iter() {
522522
v.push(b as u32);

0 commit comments

Comments
 (0)