Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Commit 6cce01a

Browse files
committed
Fix travis build
1 parent 7a9d284 commit 6cce01a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/allocator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use core::alloc::{AllocErr, GlobalAlloc, Layout};
1+
use core::alloc::{GlobalAlloc, Layout};
22

33
use bindings;
44
use c_types;

src/user_ptr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl UserSlicePtrReader {
100100
bindings::_copy_from_user(
101101
data.as_mut_ptr() as *mut c_types::c_void,
102102
self.0,
103-
data.len() as u64,
103+
data.len() as _,
104104
)
105105
};
106106
if res != 0 {
@@ -126,7 +126,7 @@ impl UserSlicePtrWriter {
126126
bindings::_copy_to_user(
127127
self.0,
128128
data.as_ptr() as *const c_types::c_void,
129-
data.len() as u64,
129+
data.len() as _,
130130
)
131131
};
132132
if res != 0 {

0 commit comments

Comments
 (0)