We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6620474 commit 1f36802Copy full SHA for 1f36802
src/wrapper.rs
@@ -126,7 +126,7 @@ impl INotify {
126
-1 => {
127
let error = errno();
128
if error == EAGAIN as usize || error == EWOULDBLOCK as usize {
129
- return Ok(self.events.as_slice());
+ return Ok(&self.events[]);
130
}
131
else {
132
return Err(IoError::from_errno(error, true));
@@ -141,7 +141,7 @@ impl INotify {
141
let mut i = 0;
142
while i < len {
143
unsafe {
144
- let slice = buffer.slice_from(i as usize);
+ let slice = &buffer[i as usize..];
145
146
let event = slice.as_ptr() as *const inotify_event;
147
@@ -165,7 +165,7 @@ impl INotify {
165
166
167
168
- Ok(self.events.as_slice())
+ Ok(&self.events[])
169
170
171
pub fn close(&self) -> IoResult<()> {
0 commit comments