1
Fork 0

Implement PrintWithSpace trait on hir::Mutability

This commit is contained in:
Guillaume Gomez 2019-12-21 15:47:27 +01:00
parent 5a0d747eef
commit 0d7a49d356
3 changed files with 13 additions and 13 deletions

View file

@ -3298,7 +3298,7 @@ fn should_render_item(item: &clean::Item, deref_mut_: bool) -> bool {
let (by_mut_ref, by_box, by_value) = match self_ty {
SelfTy::SelfBorrowed(_, mutability) |
SelfTy::SelfExplicit(clean::BorrowedRef { mutability, .. }) => {
(mutability == Mutability::Mutable, false, false)
(mutability == Mutability::Mut, false, false)
},
SelfTy::SelfExplicit(clean::ResolvedPath { did, .. }) => {
(false, Some(did) == cache().owned_box_did, false)