From c6c4e0f4384cc2416877b0731452119ae355d22b Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Tue, 20 Sep 2022 16:15:54 -0700 Subject: [PATCH] rustdoc: remove no-op `.method { font-size: 1rem }` This rule was added in 22dad4b0440b184568956c10f2cbedabf763065a, back when the `method` class was attached to headers instead of DIVs that wrap headers. Old method rendering: https://github.com/rust-lang/rust/blob/a96247bcac385671757034bd928c13097fd2ce76/src/librustdoc/html/render.rs#L2062 Current method rendering: https://github.com/rust-lang/rust/blob/432abd86f231c908f6df3cdd779e83f35084be90/src/librustdoc/html/render/print_item.rs#L721 --- src/librustdoc/html/static/css/rustdoc.css | 1 - 1 file changed, 1 deletion(-) diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index e985e6c43ad..d9e5f77ef0a 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -729,7 +729,6 @@ pre, .rustdoc.source .example-wrap { } .content > .methods > .method { - font-size: 1rem; position: relative; } /* Shift "where ..." part of method or fn definition down a line */