93
93
"none" => UserInput :: None ,
94
94
"wet" => UserInput :: Some ( CoughType :: Wet ) ,
95
95
"dry" => UserInput :: Some ( CoughType :: Dry ) ,
96
- _ => Err ( format ! ( "Not supported: {}" , cough_type) ) ?,
96
+ _ => {
97
+ error ! ( "Not supported cough type: {}" , cough_type) ;
98
+ Err ( format ! ( "Not supported cough type: {}" , cough_type) ) ?
99
+ }
97
100
} ;
98
101
99
102
debug ! ( "Setting cough type: {:?}" , input) ;
@@ -120,7 +123,10 @@ where
120
123
"better_and_worse" => UserInput :: Some ( CoughStatus :: BetterAndWorseThroughDay ) ,
121
124
"same_steadily_worse" => UserInput :: Some ( CoughStatus :: SameOrSteadilyWorse ) ,
122
125
"worse_outside" => UserInput :: Some ( CoughStatus :: WorseWhenOutside ) ,
123
- _ => Err ( format ! ( "Not supported: {}" , status) ) ?,
126
+ _ => {
127
+ error ! ( "Not supported cough status: {}" , status) ;
128
+ Err ( format ! ( "Not supported cough status: {}" , status) ) ?
129
+ }
124
130
} ;
125
131
126
132
debug ! ( "Setting cough status: {:?}" , input) ;
@@ -141,7 +147,10 @@ where
141
147
}
142
148
"ground_own_pace" => UserInput :: Some ( BreathlessnessCause :: GroundOwnPace ) ,
143
149
"hurry_or_hill" => UserInput :: Some ( BreathlessnessCause :: HurryOrHill ) ,
144
- _ => Err ( format ! ( "Not supported: {}" , cause) ) ?,
150
+ _ => {
151
+ error ! ( "Not supported breathlessness cause: {}" , cause) ;
152
+ Err ( format ! ( "Not supported breathlessness cause: {}" , cause) ) ?
153
+ }
145
154
} ;
146
155
147
156
debug ! ( "Setting breathlessness cause: {:?}" , input) ;
@@ -185,7 +194,10 @@ where
185
194
"ear" => UserInput :: Some ( TemperatureSpot :: Ear ) ,
186
195
"mouth" => UserInput :: Some ( TemperatureSpot :: Mouth ) ,
187
196
"other" => UserInput :: Some ( TemperatureSpot :: Other ) ,
188
- _ => Err ( format ! ( "Not supported: {}" , spot) ) ?,
197
+ _ => {
198
+ error ! ( "Not supported temperature spot: {}" , spot) ;
199
+ Err ( format ! ( "Not supported temperature spot: {}" , spot) ) ?
200
+ }
189
201
} ;
190
202
191
203
debug ! ( "Setting fever temperature spot: {:?}" , input) ;
0 commit comments