Fix BorrowMutError
when calling cargo doc --open
#9531
Merged
BorrowMutError
when calling cargo doc --open
#9531