diff options
| author | Michael Goulet <michael@errs.io> | 2023-06-18 13:17:08 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-18 13:17:08 -0700 |
| commit | 3b059e0fdbf0257ac4921552781d070e8288233a (patch) | |
| tree | cfa4c88b96fe9d7f875b576e31c2286ac164f19f /library/std/src/sys/unix/thread.rs | |
| parent | d70be670474c98e62eefc67674b7bb3c7c4f5053 (diff) | |
| parent | 894ab2ce7ab15b3bdb1d976aee21ff3157c8779b (diff) | |
| download | rust-3b059e0fdbf0257ac4921552781d070e8288233a.tar.gz rust-3b059e0fdbf0257ac4921552781d070e8288233a.zip | |
Rollup merge of #112758 - bvanjoi:clean-up-resolve, r=petrochenkov
refactor(resolve): delete update_resolution function
The `{ resolution.single_imports.remove(); }` code block does not modify the `binding` of this `resolution`. Therefore, the result of `resolution.binding()` before and after `let t = f(self, resolution)` will remain the same, and it will always satisfy the result: `_ if old_binding.is_some() => return t` or `None => return t`.
And then we delete the `update_resolution` function because it only called once.
r? ``@petrochenkov``
Diffstat (limited to 'library/std/src/sys/unix/thread.rs')
0 files changed, 0 insertions, 0 deletions
