Commit aba414c
committed
Avoid eliding lifetimes to make rustc happy
error: hiding a lifetime that's elided elsewhere is confusing
--> cryptoki/src/session/object_management.rs:227:25
|
227 | pub fn iter_objects(&self, template: &[Attribute]) -> Result<ObjectHandleIterator> {
| ^^^^^ the lifetime is elided here -------------------- the same lifetime is hidden here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `-D mismatched-lifetime-syntaxes` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(mismatched_lifetime_syntaxes)]`
help: use `'_` for type paths
|
227 | pub fn iter_objects(&self, template: &[Attribute]) -> Result<ObjectHandleIterator<'_>> {
| ++++
Signed-off-by: Jakub Jelen <[email protected]>1 parent 1edfea8 commit aba414c
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| |||
0 commit comments