mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
18ade8478e
`ActiveJobGuard::complete` and `ActiveJobGuard::drop` have very similar code, though non-essential structural differences obscure this a little. This commit factors out the common code into a new method `ActiveJobGuard::complete_inner`. It also inlines and remove `expect_job`, which ends up having a single call site.