Skip to content

Commit 05d1e72

Browse files
committed
& -> &&
1 parent 97cd30d commit 05d1e72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/html/render/print_item.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
464464
// We also do this if the types + consts is large because otherwise we could
465465
// render a bunch of types and _then_ a bunch of consts just because both were
466466
// _just_ under the limit
467-
if !toggle & should_hide_fields(types.len() + consts.len()) {
467+
if !toggle && should_hide_fields(types.len() + consts.len()) {
468468
toggle = true;
469469
toggle_open(w, "associated constants and methods");
470470
}
@@ -475,7 +475,7 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
475475
render_assoc_item(w, t, AssocItemLink::Anchor(None), ItemType::Trait, cx);
476476
w.write_str(";\n");
477477
}
478-
if !toggle & should_hide_fields(required.len() + provided.len()) {
478+
if !toggle && should_hide_fields(required.len() + provided.len()) {
479479
toggle = true;
480480
toggle_open(w, "methods");
481481
}

0 commit comments

Comments
 (0)