Commit 199802d
authored
Fix new lints (#914)
* Fix `clippy::uninlined_format_args` lints
Thanks, Clippy, for causing a whole bunch of needless churn for
basically no good reason!
* Fix `dangerous_implicit_autorefs` warning in `dladm`
This [warning] warns about the creation of implicit references to the
dereference of a raw pointer. I've fixed this by using `ptr::addr_of!`
and `slice::from_raw_parts` to construct the slice into `ma_addr`,
avoiding the creation of temporary references through the raw pointer.
In this case, the suggestions from the lint of just adding an additional
explicit `&` reference as a way of saying "this is okay, because I know
the pointer is non-null and well-aligned" would *probably* have been
fine, but this felt less sketchy.
[warning]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint/autorefs/static.DANGEROUS_IMPLICIT_AUTOREFS.html1 parent 0e06506 commit 199802d
32 files changed
Lines changed: 84 additions & 99 deletions
File tree
- bin
- mock-server/src/lib
- propolis-cli/src
- propolis-server/src/lib
- migrate
- stats
- vm
- propolis-standalone/src
- crates
- bhyve-api/src
- dladm/src
- propolis-api-types/src/instance_spec
- propolis-types/src
- rfb/examples
- lib/propolis-client/src
- phd-tests
- framework/src
- disk
- guest_os
- serial
- test_vm
- runner/src
- tests/src
- boot_order
- crucible
- xtask/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
360 | | - | |
| 359 | + | |
361 | 360 | | |
362 | 361 | | |
363 | 362 | | |
| |||
758 | 757 | | |
759 | 758 | | |
760 | 759 | | |
761 | | - | |
762 | | - | |
| 760 | + | |
763 | 761 | | |
764 | 762 | | |
765 | 763 | | |
| |||
780 | 778 | | |
781 | 779 | | |
782 | 780 | | |
783 | | - | |
784 | | - | |
| 781 | + | |
785 | 782 | | |
786 | 783 | | |
787 | 784 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
679 | 679 | | |
680 | 680 | | |
681 | 681 | | |
682 | | - | |
| 682 | + | |
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
| |||
826 | 826 | | |
827 | 827 | | |
828 | 828 | | |
829 | | - | |
| 829 | + | |
830 | 830 | | |
831 | 831 | | |
832 | 832 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
652 | | - | |
| 652 | + | |
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
555 | | - | |
556 | | - | |
| 555 | + | |
557 | 556 | | |
558 | 557 | | |
559 | 558 | | |
| |||
571 | 570 | | |
572 | 571 | | |
573 | 572 | | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
| 573 | + | |
578 | 574 | | |
579 | 575 | | |
580 | 576 | | |
581 | 577 | | |
582 | 578 | | |
583 | | - | |
584 | | - | |
| 579 | + | |
585 | 580 | | |
586 | 581 | | |
587 | 582 | | |
| |||
635 | 630 | | |
636 | 631 | | |
637 | 632 | | |
638 | | - | |
| 633 | + | |
639 | 634 | | |
640 | 635 | | |
641 | 636 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
751 | | - | |
752 | | - | |
| 751 | + | |
753 | 752 | | |
754 | 753 | | |
755 | 754 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
340 | | - | |
| 339 | + | |
341 | 340 | | |
342 | 341 | | |
343 | 342 | | |
| |||
366 | 365 | | |
367 | 366 | | |
368 | 367 | | |
369 | | - | |
370 | | - | |
| 368 | + | |
371 | 369 | | |
372 | 370 | | |
373 | 371 | | |
| |||
469 | 467 | | |
470 | 468 | | |
471 | 469 | | |
472 | | - | |
| 470 | + | |
473 | 471 | | |
474 | 472 | | |
475 | 473 | | |
| |||
624 | 622 | | |
625 | 623 | | |
626 | 624 | | |
627 | | - | |
| 625 | + | |
628 | 626 | | |
629 | 627 | | |
630 | 628 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
502 | 501 | | |
503 | 502 | | |
504 | 503 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
| 324 | + | |
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
| 328 | + | |
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
| 187 | + | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
0 commit comments