File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ impl SettingsWindow {
85
85
let new_value: i32 = button. value_as_int ( ) ;
86
86
87
87
// Set refresh rate property
88
- let settings = self . settings . get ( ) . expect ( "..Cannot retrieve settings" ) ;
88
+ let settings: & Settings = self . settings . get ( ) . expect ( "..Cannot retrieve settings" ) ;
89
89
settings
90
90
. set_int ( "refreshrate" , new_value)
91
91
. expect ( "..Cannot set `tempformat` setting" ) ;
@@ -110,14 +110,14 @@ impl SettingsWindow {
110
110
match unit. as_str ( ) {
111
111
"Celcius (C)" => {
112
112
// Set temperature unit as C
113
- let settings = self . settings . get ( ) . expect ( "..Cannot retrieve settings" ) ;
113
+ let settings: & Settings = self . settings . get ( ) . expect ( "..Cannot retrieve settings" ) ;
114
114
settings
115
115
. set_int ( "tempformat" , 0 )
116
116
. expect ( "..Cannot set `tempformat` setting" ) ;
117
117
}
118
118
"Fahrenheit (F)" => {
119
119
// Set temperature unit as F
120
- let settings = self . settings . get ( ) . expect ( "..Cannot retrieve settings" ) ;
120
+ let settings: & Settings = self . settings . get ( ) . expect ( "..Cannot retrieve settings" ) ;
121
121
settings
122
122
. set_int ( "tempformat" , 1 )
123
123
. expect ( "..Cannot set `tempformat` setting" ) ;
You can’t perform that action at this time.
0 commit comments