File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -110,14 +110,16 @@ impl SettingsWindow {
110
110
match unit. as_str ( ) {
111
111
"Celcius (C)" => {
112
112
// Set temperature unit as C
113
- let settings: & Settings = self . settings . get ( ) . expect ( "..Cannot retrieve settings" ) ;
113
+ let settings: & Settings =
114
+ self . settings . get ( ) . expect ( "..Cannot retrieve settings" ) ;
114
115
settings
115
116
. set_int ( "tempformat" , 0 )
116
117
. expect ( "..Cannot set `tempformat` setting" ) ;
117
118
}
118
119
"Fahrenheit (F)" => {
119
120
// Set temperature unit as F
120
- let settings: & Settings = self . settings . get ( ) . expect ( "..Cannot retrieve settings" ) ;
121
+ let settings: & Settings =
122
+ self . settings . get ( ) . expect ( "..Cannot retrieve settings" ) ;
121
123
settings
122
124
. set_int ( "tempformat" , 1 )
123
125
. expect ( "..Cannot set `tempformat` setting" ) ;
You can’t perform that action at this time.
0 commit comments