Commit 6bc3c50
vfio-user: Fix clippy warning
Fix clippy warning as Rust toolchain 1.89.0-beta.3 (b5e10d8c0
2025-07-02) suggested.
```console
Error: --> vfio-user/examples/gpio/pci.rs:558:21
|
558 | pub fn get_bars(&self) -> PciBarIter {
| ^^^^^ ---------- the lifetime gets resolved as `'_`
| |
| this lifetime flows to the output
|
= note: `-D mismatched-lifetime-syntaxes` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(mismatched_lifetime_syntaxes)]`
help: one option is to remove the lifetime for references and use the anonymous lifetime for paths
|
558 | pub fn get_bars(&self) -> PciBarIter<'_> {
| ++++
```
Signed-off-by: Ruoqing He <[email protected]>mismatched_lifetime_syntaxes
1 parent cd948a2 commit 6bc3c50
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
558 | | - | |
| 558 | + | |
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
| |||
0 commit comments