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:
authorMark Rousskov <mark.simulacrum@gmail.com>2020-03-18 19:00:15 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2020-03-20 09:43:41 -0400
commit13f6d771bb7f3617e247d9806e1b9472022cdaf4 (patch)
tree1f7e5da4bfa4872999299118983646a71625716a /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent54b7c38889ee7bb59f4d6449822fcfdfa3448ddb (diff)
downloadrust-13f6d771bb7f3617e247d9806e1b9472022cdaf4.tar.gz
rust-13f6d771bb7f3617e247d9806e1b9472022cdaf4.zip
Simplify ensure_root_is_owned callers
This makes ensure_root_is_owned return a reference to the (now guaranteed to
exist) root, allowing callers to operate on it without going through another
unwrap.

Unfortunately this is only rarely useful as it's frequently the case that both
the length and the root need to be accessed and field-level borrows in methods
don't yet exist.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions