about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorNoah Lev <camelidcamel@gmail.com>2022-01-06 15:22:22 -0800
committerNoah Lev <camelidcamel@gmail.com>2022-01-10 19:23:26 -0800
commit895fa9cd5c79b5c30614852c4c74a963b3ec458a (patch)
tree3a0f5681923726c1a51fa87290946698fed2a6d5 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parenta5f09f74d6dc0f52fd2c73fca0a9e5bb99eb756c (diff)
downloadrust-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/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions