diff options
| author | Marcel Hellwig <github@cookiesoft.de> | 2022-07-07 11:59:55 +0200 |
|---|---|---|
| committer | Marcel Hellwig <github@cookiesoft.de> | 2022-07-07 12:43:16 +0200 |
| commit | f2bef55389e3e053cab50d91a674739d8a1ca036 (patch) | |
| tree | 6a00b2bfaff05ec677de3819c04677d45fe84a45 /src/test/codegen/src-hash-algorithm | |
| parent | afb34eb261aa8e54b9045a582d2553bb7d6fd463 (diff) | |
| download | rust-f2bef55389e3e053cab50d91a674739d8a1ca036.tar.gz rust-f2bef55389e3e053cab50d91a674739d8a1ca036.zip | |
trait_bounds: rework two loops into one
the two loops did practically the same, only the type were different (&& vs &), so I used `copied` to convert `&&` and chained them together. Instead of parsing the trait info manually, I use the already provided method `get_trait_info_from_bound`. Also, instead of using manual string writing, I used `join` by `itertools`.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
