Commit 5abc70c
committed
tr: break Tr API in a couple ways
We fix the return value of Tr::tap_tree to return a Option<&T> instead
of an &Option<T>; we already do this in Descriptor::tap_tree, which is
likely to be more commonly called ... and both methods are pretty
obscure.
Also remove the iter_scripts method in favor of leaves. We did this
rename in the previous PR. However, that PR broke its API anyway by
making it yield an opaque struct rather than a tuple. Better to just do
all the breakage at once.
Maaybe we should backport the rename to 12.x as a pure rename, so that
people will update their code and get nicer error messages.1 parent d2e30d5 commit 5abc70c
2 files changed
+4
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| |||
988 | 988 | | |
989 | 989 | | |
990 | 990 | | |
991 | | - | |
| 991 | + | |
992 | 992 | | |
993 | 993 | | |
994 | 994 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 108 | + | |
118 | 109 | | |
119 | 110 | | |
120 | 111 | | |
| |||
0 commit comments