summaryrefslogtreecommitdiff
path: root/src/rust/protover/tests
diff options
context:
space:
mode:
authorIsis Lovecruft <isis@torproject.org>2018-03-21 02:09:04 +0000
committerIsis Lovecruft <isis@torproject.org>2018-04-02 19:34:25 +0000
commit35b86a12e60a8696b512261e96dc6f1c75ecebfc (patch)
tree2426d9dd0147b7d98b3a5db1d709a8beb95313dc /src/rust/protover/tests
parent2eb1b7f2fd05eb0302e41b55f5cb61959cc9528e (diff)
downloadtor-35b86a12e60a8696b512261e96dc6f1c75ecebfc.tar.gz
tor-35b86a12e60a8696b512261e96dc6f1c75ecebfc.zip
rust: Refactor protover::is_supported_here().
This changes `protover::is_supported_here()` to be aware of new datatypes (e.g. don't call `.0` on things which are no longer tuple structs) and also changes the method signature to take borrows, making it faster, threadable, and easier to read (i.e. the caller can know from reading the function signature that the function won't mutate values passed into it). * CHANGE the `protover::is_supported_here()` function to take borrows. * REFACTOR the `protover::is_supported_here()` function to be aware of new datatypes. * FIXES part of #24031: https://bugs.torproject.org/24031
Diffstat (limited to 'src/rust/protover/tests')
0 files changed, 0 insertions, 0 deletions