Repository navigation
Commit 3d0799f
Russell Bryant
fix(cni): satisfy Rust 1.95 clippy lints in the CNI plugin
The toolchain bump on main surfaced four lints in the chained CNI plugin:
a needless borrow of an already-borrowed nft path, a collapsible nested
if in verify_rules, a bare OPENSHELL_OUTPUT in a doc comment, and an
unnecessary Result wrap on cleanup_rules. The cleanup_rules Result is
kept and explicitly allowed so the signature stays symmetric with its
non-Linux twin, which already carries the same allow.
Signed-off-by: Russell Bryant <rbryant@rbryant-thinkpadt14sgen2i.rmtussc.csb>1 parent b9a43fa commit 3d0799f
1 file changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1151 | 1151 | | |
1152 | 1152 | | |
1153 | 1153 | | |
1154 | | - | |
| 1154 | + | |
1155 | 1155 | | |
1156 | 1156 | | |
1157 | 1157 | | |
| |||
1162 | 1162 | | |
1163 | 1163 | | |
1164 | 1164 | | |
1165 | | - | |
1166 | | - | |
| 1165 | + | |
| 1166 | + | |
1167 | 1167 | | |
1168 | | - | |
1169 | | - | |
1170 | | - | |
| 1168 | + | |
| 1169 | + | |
1171 | 1170 | | |
1172 | 1171 | | |
1173 | 1172 | | |
| |||
1219 | 1218 | | |
1220 | 1219 | | |
1221 | 1220 | | |
1222 | | - | |
| 1221 | + | |
1223 | 1222 | | |
1224 | 1223 | | |
1225 | 1224 | | |
| |||
1336 | 1335 | | |
1337 | 1336 | | |
1338 | 1337 | | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
1339 | 1341 | | |
| 1342 | + | |
1340 | 1343 | | |
1341 | 1344 | | |
1342 | 1345 | | |
| |||
0 commit comments