Commit ce52222
authored
FSM: Remove needless lifetime annotations (#1105)
This PR resolves a clippy::needless_lifetimes warning found in the
create_test_config test helper function.
The explicit 'a lifetime annotation was unnecessary, as Rust's lifetime
elision rules can correctly infer the lifetime of the input &str and the
returned NegotiationConfig.
The function signature has been updated to remove the explicit lifetime,
making the code more idiomatic.
Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>1 parent 445b12b commit ce52222
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
373 | | - | |
| 372 | + | |
| 373 | + | |
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
| 378 | + | |
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| |||
728 | 728 | | |
729 | 729 | | |
730 | 730 | | |
731 | | - | |
732 | | - | |
| 731 | + | |
| 732 | + | |
733 | 733 | | |
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
737 | | - | |
| 737 | + | |
738 | 738 | | |
739 | 739 | | |
740 | 740 | | |
| |||
0 commit comments