@@ -1365,15 +1365,15 @@ enum Setting {
1365
1365
impl Setting {
1366
1366
fn display ( & self , root_path : & str , suffix : & str ) -> String {
1367
1367
match * self {
1368
- Setting :: Section { ref description, ref sub_settings } => format ! (
1368
+ Setting :: Section { description, ref sub_settings } => format ! (
1369
1369
"<div class='setting-line'>\
1370
1370
<div class='title'>{}</div>\
1371
1371
<div class='sub-settings'>{}</div>
1372
1372
</div>" ,
1373
1373
description,
1374
1374
sub_settings. iter( ) . map( |s| s. display( root_path, suffix) ) . collect:: <String >( )
1375
1375
) ,
1376
- Setting :: Toggle { ref js_data_name, ref description, ref default_value } => format ! (
1376
+ Setting :: Toggle { js_data_name, description, default_value } => format ! (
1377
1377
"<div class='setting-line'>\
1378
1378
<label class='toggle'>\
1379
1379
<input type='checkbox' id='{}' {}>\
@@ -1382,15 +1382,10 @@ impl Setting {
1382
1382
<div>{}</div>\
1383
1383
</div>",
1384
1384
js_data_name,
1385
- if * default_value { " checked" } else { "" } ,
1385
+ if default_value { " checked" } else { "" } ,
1386
1386
description,
1387
1387
) ,
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 ! (
1394
1389
"<div class='setting-line'>\
1395
1390
<div>{}</div>\
1396
1391
<label class='select-wrapper'>\
@@ -1405,7 +1400,7 @@ impl Setting {
1405
1400
. map( |opt| format!(
1406
1401
"<option value=\" {}\" {}>{}</option>" ,
1407
1402
opt. 0 ,
1408
- if & opt. 0 == * default_value { "selected" } else { "" } ,
1403
+ if & opt. 0 == default_value { "selected" } else { "" } ,
1409
1404
opt. 1 ,
1410
1405
) )
1411
1406
. collect:: <String >( ) ,
0 commit comments