File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed
crates/common/tedge_config/src/tedge_config_cli Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -17,22 +17,6 @@ pub struct InvalidAutoFlag {
17
17
input : String ,
18
18
}
19
19
20
- impl From < bool > for AutoFlag {
21
- fn from ( value : bool ) -> Self {
22
- if value {
23
- AutoFlag :: True
24
- } else {
25
- AutoFlag :: False
26
- }
27
- }
28
- }
29
-
30
- impl From < & str > for AutoFlag {
31
- fn from ( value : & str ) -> Self {
32
- FromStr :: from_str ( value) . unwrap_or ( AutoFlag :: False )
33
- }
34
- }
35
-
36
20
impl FromStr for AutoFlag {
37
21
type Err = InvalidAutoFlag ;
38
22
Original file line number Diff line number Diff line change @@ -403,7 +403,7 @@ define_tedge_config! {
403
403
include: {
404
404
/// Set the bridge local clean session flag (this requires mosquitto >= 2.0.0)
405
405
#[ tedge_config( note = "If set to 'auto', this cleans the local session accordingly the detected version of mosquitto." ) ]
406
- #[ tedge_config( example = "auto" , default ( value = "auto " ) ) ]
406
+ #[ tedge_config( example = "auto" , default ( variable = "AutoFlag::Auto " ) ) ]
407
407
local_cleansession: AutoFlag ,
408
408
}
409
409
} ,
You can’t perform that action at this time.
0 commit comments