Commit 162920d
Implement is_adjustable/is_resizable for Slip
The hardened capability traits added `Resampler::is_adjustable`/`is_resizable`
so the capability can be queried through a shared `&dyn Resampler`. `Slip` is
both `Adjustable` and `Resizable`, so it must override both to return `true`;
otherwise the defaulted `false` would under-report its capabilities through a
trait object. Extend the `capability_queries` test to cover `Slip`.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 36c00ea commit 162920d
2 files changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
785 | 785 | | |
786 | 786 | | |
787 | 787 | | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
788 | 795 | | |
789 | 796 | | |
790 | 797 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
502 | 506 | | |
503 | 507 | | |
504 | 508 | | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
505 | 513 | | |
506 | 514 | | |
507 | 515 | | |
| |||
0 commit comments