diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-09-13 17:15:40 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-09-13 17:15:40 -0400 |
| commit | 8a13fc494d4365e57d8f343219f0201458b68591 (patch) | |
| tree | 8c63766b5fa5b5c54a498f5e4a49263d3d31a8ae /library/std/src/sys/unix/process/process_unix.rs | |
| parent | 7dc0d335bcc819c770320635a055c9cfe076339a (diff) | |
| download | rust-8a13fc494d4365e57d8f343219f0201458b68591.tar.gz rust-8a13fc494d4365e57d8f343219f0201458b68591.zip | |
Require `module_id` param to `resolve` to be non-empty
Previously, `resolve` would immediately check that `module_id` was non-empty and give an error if not. This had two downsides: - It introduced `Option`s everywhere, even if the calling function knew it had a valid module, and - It checked the module on each namespace, which is unnecessary: it only needed to be checked once. This makes the caller responsible for checking the module exists, making the code a lot simpler.
Diffstat (limited to 'library/std/src/sys/unix/process/process_unix.rs')
0 files changed, 0 insertions, 0 deletions
