Commit d9426f4
committed
Allow
We recently introduced the associated fns `with_tips` and `with_ends`
for adding tips and ends after initial creation of a `Builder`. We
erroneously added them to the one impl constraining the predicate to a
specific function pointer type for the default predicate. This meant
that tips and ends could only be added until the predicate is set to
a `FnMut` that can not be coerced to that same type.
This change lifts this limitation by moving `with_tips` and `with_ends`
to the more generic impl for `Builder`.topo::Builder::with_tips and with_ends for non-default pred1 parent f8ba4b9 commit d9426f4
1 file changed
+17
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 48 | | |
66 | 49 | | |
67 | 50 | | |
| |||
87 | 70 | | |
88 | 71 | | |
89 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
0 commit comments