Commit b996d80
committed
Adjust an impl of
`IntoQueryParam` is a trait that lets query callers be a bit sloppy with
arguments:
- types similar to `DefId` and `LocalDefId` will be auto-converted
- reference types will be auto-derefed
I find this sloppiness a bit odd and distasteful; I'm not sure why
queries get special treatment like this. Anyway, it turns out that the
auto-derefing is only used for `&DefId`. This commit replaces the
blanket impl for `&'a P` with one for `&DefId`, which enables the next
commit.IntoQueryParam.1 parent aa8d5b1 commit b996d80
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
627 | 627 | | |
628 | 628 | | |
629 | 629 | | |
630 | | - | |
| 630 | + | |
631 | 631 | | |
632 | | - | |
633 | | - | |
| 632 | + | |
| 633 | + | |
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
637 | 637 | | |
| 638 | + | |
638 | 639 | | |
639 | 640 | | |
640 | 641 | | |
641 | 642 | | |
642 | 643 | | |
643 | 644 | | |
644 | 645 | | |
645 | | - | |
| 646 | + | |
| 647 | + | |
646 | 648 | | |
647 | | - | |
| 649 | + | |
648 | 650 | | |
649 | 651 | | |
650 | 652 | | |
| |||
0 commit comments