diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2020-03-18 19:00:15 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2020-03-20 09:43:41 -0400 |
| commit | 13f6d771bb7f3617e247d9806e1b9472022cdaf4 (patch) | |
| tree | 1f7e5da4bfa4872999299118983646a71625716a /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | 54b7c38889ee7bb59f4d6449822fcfdfa3448ddb (diff) | |
| download | rust-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
