File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ use std::env;
88use std:: env:: current_dir;
99use std:: ffi:: OsString ;
1010use std:: path:: PathBuf ;
11+ #[ cfg( feature = "bundled" ) ]
1112use std:: str:: FromStr ;
1213#[ cfg( feature = "bundled" ) ]
1314use std:: sync:: LazyLock ;
@@ -156,19 +157,13 @@ impl Settings {
156157 settings. version = VersionReq :: parse ( version) ?;
157158 }
158159 if let Some ( installation_dir) = query_parameters. get ( "installation_dir" ) {
159- if let Ok ( path) = PathBuf :: from_str ( installation_dir) {
160- settings. installation_dir = path;
161- }
160+ settings. installation_dir = PathBuf :: from ( installation_dir) ;
162161 }
163162 if let Some ( password_file) = query_parameters. get ( "password_file" ) {
164- if let Ok ( path) = PathBuf :: from_str ( password_file) {
165- settings. password_file = path;
166- }
163+ settings. password_file = PathBuf :: from ( password_file) ;
167164 }
168165 if let Some ( data_dir) = query_parameters. get ( "data_dir" ) {
169- if let Ok ( path) = PathBuf :: from_str ( data_dir) {
170- settings. data_dir = path;
171- }
166+ settings. data_dir = PathBuf :: from ( data_dir) ;
172167 }
173168 if let Some ( host) = parsed_url. host ( ) {
174169 settings. host = host. to_string ( ) ;
Original file line number Diff line number Diff line change 11[toolchain ]
2- channel = " 1.81 .0"
2+ channel = " 1.82 .0"
33profile = " default"
You can’t perform that action at this time.
0 commit comments