copied_device: pass the pitch test's second host by the reference it already is
clippy --cfg m2v_gpu (5687): needless_borrow at the rebind in rebind_at_pitch. Verified: 5687's plain clippy of runtime and validation, fmt --check and fast_paths passed; the gpu clippy rerun is a potluck job. (cherry picked from commit 9e5baa377aabc3633c7ea2b20a12afa03b59ab21)
This commit is contained in:
1 parent
6a420d915c
commit
dfa56df28b
1 file changed
+1
-1
@@ -1166,7 +1166,7 @@ fn rebind_at_pitch(device: &Device, pitch: usize, (first, second): &(Host, Host)
|
||||
let passed = device.in_place_verdict(PagesClass::Fresh, Access::Reads) == Verdict::Passed;
|
||||
let asked: Arc<Mutex<Vec<ImportRequest>>> = Arc::default();
|
||||
let before = device.work_counts();
|
||||
let rebound = rebind(&buffer, &second, Some(gate(&asked, false)));
|
||||
let rebound = rebind(&buffer, second, Some(gate(&asked, false)));
|
||||
let after = device.work_counts();
|
||||
let fresh = after.fresh_page_buffers_made - before.fresh_page_buffers_made;
|
||||
let images = after.copied_rebind_images_made - before.copied_rebind_images_made;
|
||||
|
||||
Reference in new issue
Block a user