- Notifications
You must be signed in to change notification settings - Fork514
Commitc5d3442
committed
fix an Error/Display impl
Types implementing the Error trait should print some inner Error **xor**return that inner Error from its Error::source impl. Otherwise, the sameerror will be printed multiple times when printing an Error's entiresource chain, which is unhelpful.1 parentbbd1301 commitc5d3442
File tree
5 files changed
+23
-45
lines changed- tokio-postgres
- src/error
- tests/test/types
5 files changed
+23
-45
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
379 | 379 |
| |
380 | 380 |
| |
381 | 381 |
| |
382 |
| - | |
383 |
| - | |
384 |
| - | |
385 |
| - | |
386 |
| - | |
387 |
| - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
388 | 388 |
| |
389 |
| - | |
| 389 | + | |
390 | 390 |
| |
391 |
| - | |
392 |
| - | |
393 |
| - | |
394 |
| - | |
395 |
| - | |
396 |
| - | |
397 |
| - | |
398 |
| - | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
399 | 399 |
| |
400 |
| - | |
401 |
| - | |
402 |
| - | |
403 |
| - | |
404 |
| - | |
| 400 | + | |
| 401 | + | |
405 | 402 |
| |
406 |
| - | |
407 | 403 |
| |
408 | 404 |
| |
409 | 405 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
171 | 171 |
| |
172 | 172 |
| |
173 | 173 |
| |
174 |
| - | |
175 |
| - | |
176 |
| - | |
177 |
| - | |
| 174 | + | |
178 | 175 |
| |
179 | 176 |
| |
180 | 177 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
146 | 146 |
| |
147 | 147 |
| |
148 | 148 |
| |
149 |
| - | |
150 |
| - | |
151 |
| - | |
152 |
| - | |
| 149 | + | |
153 | 150 |
| |
154 | 151 |
| |
155 | 152 |
| |
| |||
158 | 155 |
| |
159 | 156 |
| |
160 | 157 |
| |
161 |
| - | |
162 |
| - | |
163 |
| - | |
164 |
| - | |
| 158 | + | |
165 | 159 |
| |
166 | 160 |
| |
167 | 161 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
146 | 146 |
| |
147 | 147 |
| |
148 | 148 |
| |
149 |
| - | |
150 |
| - | |
151 |
| - | |
152 |
| - | |
| 149 | + | |
153 | 150 |
| |
154 | 151 |
| |
155 | 152 |
| |
| |||
158 | 155 |
| |
159 | 156 |
| |
160 | 157 |
| |
161 |
| - | |
162 |
| - | |
163 |
| - | |
164 |
| - | |
| 158 | + | |
165 | 159 |
| |
166 | 160 |
| |
167 | 161 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
166 | 166 |
| |
167 | 167 |
| |
168 | 168 |
| |
169 |
| - | |
170 |
| - | |
171 |
| - | |
172 |
| - | |
| 169 | + | |
173 | 170 |
| |
174 | 171 |
| |
175 | 172 |
| |
|
0 commit comments
Comments
(0)