about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorMarcel Hellwig <github@cookiesoft.de>2022-07-07 11:59:55 +0200
committerMarcel Hellwig <github@cookiesoft.de>2022-07-07 12:43:16 +0200
commitf2bef55389e3e053cab50d91a674739d8a1ca036 (patch)
tree6a00b2bfaff05ec677de3819c04677d45fe84a45 /src/test/codegen/src-hash-algorithm
parentafb34eb261aa8e54b9045a582d2553bb7d6fd463 (diff)
downloadrust-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