Commit c99e84e
authored
Avoid leaking implementation in
`PlatformOptions.description(withIndent:)` renders `ConsoleBehavior`
and `WindowStyle` with `String(describing:)`, which exposes the private
`storage` wrapper (for example, `ConsoleBehavior(storage: inherit)`)
instead of just `inherit`, leaking an implementation detail that isn't
part of the public API.
Give both types `CustomStringConvertible` conformance and interpolate
them directly.PlatformOptions description (#284)1 parent f072a47 commit c99e84e
1 file changed
Lines changed: 46 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
456 | 500 | | |
457 | 501 | | |
458 | 502 | | |
459 | 503 | | |
460 | 504 | | |
461 | 505 | | |
462 | | - | |
463 | | - | |
| 506 | + | |
| 507 | + | |
464 | 508 | | |
465 | 509 | | |
466 | 510 | | |
| |||
0 commit comments