diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2022-01-06 15:22:22 -0800 |
|---|---|---|
| committer | Noah Lev <camelidcamel@gmail.com> | 2022-01-10 19:23:26 -0800 |
| commit | 895fa9cd5c79b5c30614852c4c74a963b3ec458a (patch) | |
| tree | 3a0f5681923726c1a51fa87290946698fed2a6d5 /src/test/codegen/src-hash-algorithm | |
| parent | a5f09f74d6dc0f52fd2c73fca0a9e5bb99eb756c (diff) | |
| download | rust-895fa9cd5c79b5c30614852c4c74a963b3ec458a.tar.gz rust-895fa9cd5c79b5c30614852c4c74a963b3ec458a.zip | |
Extract functions for two closures
These closures were quite complex and part of a quite complex function. The fact that they are closures makes mistakes likely when refactoring. For example, earlier, I meant to use `resolved`, an argument of the closure, but I instead typed `res`, which captured a local variable and caused a subtle bug that led to a confusing test failure. Extracting them as functions makes the code easier to understand and refactor.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
