about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2021-04-12 12:40:20 -0700
committerManish Goregaokar <manishsmail@gmail.com>2021-04-12 12:40:20 -0700
commit05d1e723dcc00caed9f6768ea6d30962774c09f8 (patch)
treef358d90a20577a006e7a47e0a903c6fa25893068
parent97cd30d337e4e460efc77faf03ba68ce192b5648 (diff)
downloadrust-05d1e723dcc00caed9f6768ea6d30962774c09f8.tar.gz
rust-05d1e723dcc00caed9f6768ea6d30962774c09f8.zip
& -> &&
-rw-r--r--src/librustdoc/html/render/print_item.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs
index ff3518ad7a1..ff9e4d031da 100644
--- a/src/librustdoc/html/render/print_item.rs
+++ b/src/librustdoc/html/render/print_item.rs
@@ -464,7 +464,7 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
             // We also do this if the types + consts is large because otherwise we could
             // render a bunch of types and _then_ a bunch of consts just because both were
             // _just_ under the limit
-            if !toggle & should_hide_fields(types.len() + consts.len()) {
+            if !toggle && should_hide_fields(types.len() + consts.len()) {
                 toggle = true;
                 toggle_open(w, "associated constants and methods");
             }
@@ -475,7 +475,7 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
                 render_assoc_item(w, t, AssocItemLink::Anchor(None), ItemType::Trait, cx);
                 w.write_str(";\n");
             }
-            if !toggle & should_hide_fields(required.len() + provided.len()) {
+            if !toggle && should_hide_fields(required.len() + provided.len()) {
                 toggle = true;
                 toggle_open(w, "methods");
             }