Skip to content

Commit 583a81d

Browse files
Remove pointless or
1 parent 61f1692 commit 583a81d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/html/render.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3405,7 +3405,7 @@ fn render_impl(w: &mut Buffer, cx: &Context, i: &Impl, link: AssocItemLink<'_>,
34053405
let item_type = item.type_();
34063406
let name = item.name.as_ref().unwrap();
34073407

3408-
let render_method_item: bool = match render_mode {
3408+
let render_method_item = match render_mode {
34093409
RenderMode::Normal => true,
34103410
RenderMode::ForDeref { mut_: deref_mut_ } => should_render_item(&item, deref_mut_),
34113411
};
@@ -3474,7 +3474,7 @@ fn render_impl(w: &mut Buffer, cx: &Context, i: &Impl, link: AssocItemLink<'_>,
34743474
_ => panic!("can't make docs for trait item with name {:?}", item.name)
34753475
}
34763476

3477-
if render_method_item || render_mode == RenderMode::Normal {
3477+
if render_method_item {
34783478
if !is_default_item {
34793479
if let Some(t) = trait_ {
34803480
// The trait item may have been stripped so we might not

0 commit comments

Comments
 (0)