mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
Remove as_mut_slice() calls.
This commit is contained in:
parent
a862479ca8
commit
9185c3de79
6 changed files with 7 additions and 7 deletions
|
@ -139,7 +139,7 @@ fn read_input_device(device_path: &Path,
|
|||
// XXX: Need to use the real dimensions of the screen
|
||||
let screen_dist = dist(0, 480, 854, 0);
|
||||
loop {
|
||||
let read = match device.read(buf.as_mut_slice()) {
|
||||
let read = match device.read(&mut buf) {
|
||||
Ok(count) => {
|
||||
assert!(count % size_of::<linux_input_event>() == 0,
|
||||
"Unexpected input device read length!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue