Implement PrintWithSpace trait on hir::Mutability
This commit is contained in:
parent
5a0d747eef
commit
0d7a49d356
3 changed files with 13 additions and 13 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue