Commit d845841
committed
review feedback on PR #412, round 2
Two more review comments:
- Restore the `make_const!` macro in `visualizer::proportion_bar`.
The matcher syntax (`$name:ident = $content:literal`) is now
silenced by perfectionist `93cb529`'s extension of
`looks_like_expression` to top-level `=` markers; adding
`make_const` to `allow_extra` covers the residual unknown-macro
flag from `AllowAndDeny` mode.
- Drop the experiment with `perfectionist::non_exhaustive_error`.
Remove the deny directive at the crate root, and remove the
`#[cfg_attr(... expect(perfectionist::non_exhaustive_error,
...))]` suppressions added on `args::fraction::ConversionError`
and `args::fraction::FromStrError` in the previous commit
(those types are explicitly exhaustive, so the rule was telling
them to add `#[non_exhaustive]` they did not want; the right
resolution is to drop the rule, not work around it).
https://claude.ai/code/session_01CoRidYHvni9nKNgxMPXmfQ1 parent f792aa0 commit d845841
4 files changed
Lines changed: 12 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 14 | | |
22 | 15 | | |
23 | 16 | | |
| |||
50 | 43 | | |
51 | 44 | | |
52 | 45 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 46 | | |
61 | 47 | | |
62 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 9 | | |
14 | 10 | | |
15 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
| |||
0 commit comments