Skip to content

Commit 3a6437c

Browse files
committed
Remove unnecessary refs
1 parent 45f6762 commit 3a6437c

File tree

1 file changed

+5
-10
lines changed
  • src/librustdoc/html/render

1 file changed

+5
-10
lines changed

src/librustdoc/html/render/mod.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,15 +1365,15 @@ enum Setting {
13651365
impl Setting {
13661366
fn display(&self, root_path: &str, suffix: &str) -> String {
13671367
match *self {
1368-
Setting::Section { ref description, ref sub_settings } => format!(
1368+
Setting::Section { description, ref sub_settings } => format!(
13691369
"<div class='setting-line'>\
13701370
<div class='title'>{}</div>\
13711371
<div class='sub-settings'>{}</div>
13721372
</div>",
13731373
description,
13741374
sub_settings.iter().map(|s| s.display(root_path, suffix)).collect::<String>()
13751375
),
1376-
Setting::Toggle { ref js_data_name, ref description, ref default_value } => format!(
1376+
Setting::Toggle { js_data_name, description, default_value } => format!(
13771377
"<div class='setting-line'>\
13781378
<label class='toggle'>\
13791379
<input type='checkbox' id='{}' {}>\
@@ -1382,15 +1382,10 @@ impl Setting {
13821382
<div>{}</div>\
13831383
</div>",
13841384
js_data_name,
1385-
if *default_value { " checked" } else { "" },
1385+
if default_value { " checked" } else { "" },
13861386
description,
13871387
),
1388-
Setting::Select {
1389-
ref js_data_name,
1390-
ref description,
1391-
ref default_value,
1392-
ref options,
1393-
} => format!(
1388+
Setting::Select { js_data_name, description, default_value, ref options } => format!(
13941389
"<div class='setting-line'>\
13951390
<div>{}</div>\
13961391
<label class='select-wrapper'>\
@@ -1405,7 +1400,7 @@ impl Setting {
14051400
.map(|opt| format!(
14061401
"<option value=\"{}\" {}>{}</option>",
14071402
opt.0,
1408-
if &opt.0 == *default_value { "selected" } else { "" },
1403+
if &opt.0 == default_value { "selected" } else { "" },
14091404
opt.1,
14101405
))
14111406
.collect::<String>(),

0 commit comments

Comments
 (0)