about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaximilian Köhl <mail@koehlma.de>2022-03-19 23:54:42 +0100
committerMaximilian Köhl <mail@koehlma.de>2022-03-19 23:54:42 +0100
commit1fec0fbb2c42f9cf41b04d9323139e9c82e9b963 (patch)
treeb4ba973410805d96245fc7d7b966c2fd6603f19e
parent43e4bbdaaaad1c606a1ad2ea5dbf7e1dc975af74 (diff)
downloadrust-1fec0fbb2c42f9cf41b04d9323139e9c82e9b963.tar.gz
rust-1fec0fbb2c42f9cf41b04d9323139e9c82e9b963.zip
apply rustfmt
-rw-r--r--src/librustdoc/html/render/print_item.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs
index dcf7d68ab87..8aa052dca01 100644
--- a/src/librustdoc/html/render/print_item.rs
+++ b/src/librustdoc/html/render/print_item.rs
@@ -377,8 +377,10 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
                 let add = if stab.is_some() { " " } else { "" };
 
                 let visibility_emoji = match myitem.visibility {
-                    clean::Visibility::Restricted(_) => "<span title=\"Restricted Visibility\">🔒</span> ",
-                    _ => ""
+                    clean::Visibility::Restricted(_) => {
+                        "<span title=\"Restricted Visibility\">🔒</span> "
+                    }
+                    _ => "",
                 };
 
                 let doc_value = myitem.doc_value().unwrap_or_default();