Commit 1964fd2
authored
feat: bind warn-on-block to debug-assertions (#53)
Rationale:
1. `pin-project` only produces a few generics and introduces a few
macros, meaning virtually no compile time or binary size overhead, so
having it build inconditionally is not a problem;
2. Using a conditional feature means we need to propagate to the topmost
manifest to actually use it;
3. It is reasonable enough to run this whenever we want extra checks,
that is when we use `debug-assertions`.
So, remove the feature, force the dependency and enable the check for
debug-asserted builds.1 parent d68258d commit 1964fd2
2 files changed
+3
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| |||
0 commit comments