Commit 2d6fc65
committed
psbt: remove derives from UtxoUpdateError and OutputUpdateError
Going forward, we should only derive Debug and whichever of Clone,
PartialEq and Eq are possible.
PartialEq is very useful for doing assertions, and Clone is often
useful because it allows Results to be cloned. But the other traits
are uncommon to implement on error types, have an unclear meaning,
and limit our ability to compose types without breaking changes.
Also adds a bunch of Eq bounds to error types that implement PartialEq.
There is almost never a reason to implement PartialEq but not Eq.
In the next commit I'm gonna replace ConversionError, an old error
which derives all these things, with the new NonDefiniteKeyError,
which will prevent these derives from working on UtxoUpdateError.1 parent f6bc0dd commit 2d6fc65
2 files changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
| 331 | + | |
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
| 400 | + | |
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1175 | 1175 | | |
1176 | 1176 | | |
1177 | 1177 | | |
1178 | | - | |
| 1178 | + | |
1179 | 1179 | | |
1180 | 1180 | | |
1181 | 1181 | | |
| |||
1224 | 1224 | | |
1225 | 1225 | | |
1226 | 1226 | | |
1227 | | - | |
| 1227 | + | |
1228 | 1228 | | |
1229 | 1229 | | |
1230 | 1230 | | |
| |||
0 commit comments