@@ -169,11 +169,11 @@ impl<T: Debug> IoUring<T> {
169
169
// validate that we actually did register fds
170
170
let fd = op. fd ( ) ;
171
171
match self . registered_fds_count {
172
- 0 => Err ( ( IoUringError :: NoRegisteredFds , op. user_data ( ) ) ) ,
173
- len if fd >= len => Err ( ( IoUringError :: InvalidFixedFd ( fd) , op. user_data ( ) ) ) ,
172
+ 0 => Err ( ( IoUringError :: NoRegisteredFds , op. user_data ) ) ,
173
+ len if fd >= len => Err ( ( IoUringError :: InvalidFixedFd ( fd) , op. user_data ) ) ,
174
174
_ => {
175
175
if self . num_ops >= self . cqueue . count ( ) {
176
- return Err ( ( IoUringError :: FullCQueue , op. user_data ( ) ) ) ;
176
+ return Err ( ( IoUringError :: FullCQueue , op. user_data ) ) ;
177
177
}
178
178
self . squeue
179
179
. push ( op. into_sqe ( & mut self . slab ) )
@@ -186,14 +186,14 @@ impl<T: Debug> IoUring<T> {
186
186
(
187
187
IoUringError :: SQueue ( sqe_err) ,
188
188
// We don't use slab.try_remove here for 2 reasons:
189
- // 1. user_data was insertde in slab with step `op.into_sqe` just
189
+ // 1. user_data was inserted in slab with step `op.into_sqe` just
190
190
// before the push op so the user_data key should be valid and if
191
191
// key is valid then `slab.remove()` will not fail.
192
192
// 2. If we use `slab.try_remove()` we'll have to find a way to return
193
193
// a default value for the generic type T which is difficult because
194
194
// it expands to more crates which don't make it easy to define a
195
195
// default/clone type for type T.
196
- // So beleiving that `slab.remove` won't fail we don't use
196
+ // So believing that `slab.remove` won't fail we don't use
197
197
// the `slab.try_remove` method.
198
198
#[ allow ( clippy:: cast_possible_truncation) ]
199
199
self . slab . remove ( user_data_key as usize ) ,
0 commit comments