File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -52,23 +52,23 @@ impl Config {
52
52
Config :: default ( )
53
53
}
54
54
55
- #[ cfg( feature = "configuration" ) ] {
56
- use std:: fs:: read_to_string;
55
+ #[ cfg( feature = "configuration" ) ] {
56
+ use std:: fs:: read_to_string;
57
57
58
- let file = match to_parse {
59
- encore:: ConfigurationPath :: Default => DEFAULT_CFG_PATH ,
60
- encore:: ConfigurationPath :: Custom ( s) => s
61
- } ;
62
- #[ allow( deprecated) ]
63
- let file = format ! ( "{}/{}" , std:: env:: home_dir( ) . unwrap( ) . to_string_lossy( ) . to_string( ) , file) ;
58
+ let file = match to_parse {
59
+ encore:: ConfigurationPath :: Default => DEFAULT_CFG_PATH ,
60
+ encore:: ConfigurationPath :: Custom ( s) => s
61
+ } ;
62
+ #[ allow( deprecated) ]
63
+ let file = format ! ( "{}/{}" , std:: env:: home_dir( ) . unwrap( ) . to_string_lossy( ) . to_string( ) , file) ;
64
64
65
- let buf = read_to_string ( file) . unwrap ( ) ;
65
+ let buf = read_to_string ( file) . unwrap ( ) ;
66
66
67
- let parsed: Config = basic_toml:: from_str ( & buf) . unwrap ( ) ;
68
- dbg ! ( & parsed) ;
67
+ let parsed: Config = basic_toml:: from_str ( & buf) . unwrap ( ) ;
68
+ dbg ! ( & parsed) ;
69
69
70
- parsed
71
- }
70
+ parsed
71
+ }
72
72
}
73
73
}
74
74
You can’t perform that action at this time.
0 commit comments