Commit 020ce1f
committed
ip link: make apply_bridge synchronous and fix style
apply_bridge contains no .await calls, so the async annotation is
unnecessary. Make it a regular fn and drop the .await at the call
site in add.rs.
Also replace the `if let Some(ref addr) = self.field` pattern with the
more idiomatic Rust 2024 `if let Some(addr) = &self.field` style
already used elsewhere in the file.
Signed-off-by: Gris Ge <cnfourt@gmail.com>1 parent 8cb3e4d commit 020ce1f
2 files changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 58 | + | |
61 | 59 | | |
62 | 60 | | |
63 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
| 429 | + | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
| 432 | + | |
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
735 | | - | |
| 735 | + | |
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
| |||
0 commit comments