Skip to content

Commit a0f85b1

Browse files
committed
refactor: fix minor issues
1 parent ad4fe67 commit a0f85b1

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

compio-driver/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ impl Proactor {
292292
/// This function will panic if the requested operation has not been
293293
/// completed.
294294
pub fn pop<T>(&mut self, op: Key<T>) -> PushEntry<Key<T>, (BufResult<usize, T>, u32)> {
295-
instrument!(compio_log::Level::DEBUG, "pop_flags", ?op);
295+
instrument!(compio_log::Level::DEBUG, "pop", ?op);
296296
if op.has_result() {
297297
let flags = op.flags();
298298
// SAFETY: completed.

compio-driver/tests/file.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ fn push_and_wait<O: OpCode + 'static>(driver: &mut Proactor, op: O) -> BufResult
5353
driver.poll(None, &mut entries).unwrap();
5454
}
5555
assert_eq!(entries[0], user_data.user_data());
56-
driver
57-
.pop(user_data)
58-
.map_ready(|(res, _)| res)
59-
.take_ready()
60-
.unwrap()
56+
driver.pop(user_data).take_ready().unwrap().0
6157
}
6258
}
6359
}

0 commit comments

Comments
 (0)