File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -275,6 +275,15 @@ fn normalize_toml(
275
275
warnings : & mut Vec < String > ,
276
276
errors : & mut Vec < String > ,
277
277
) -> CargoResult < manifest:: TomlManifest > {
278
+ let package_root = manifest_file. parent ( ) . unwrap ( ) ;
279
+
280
+ let inherit_cell: LazyCell < InheritableFields > = LazyCell :: new ( ) ;
281
+ let inherit = || {
282
+ inherit_cell
283
+ . try_borrow_with ( || load_inheritable_fields ( gctx, manifest_file, & workspace_config) )
284
+ } ;
285
+ let workspace_root = || inherit ( ) . map ( |fields| fields. ws_root ( ) . as_path ( ) ) ;
286
+
278
287
let mut normalized_toml = manifest:: TomlManifest {
279
288
cargo_features : original_toml. cargo_features . clone ( ) ,
280
289
package : None ,
@@ -300,15 +309,6 @@ fn normalize_toml(
300
309
_unused_keys : Default :: default ( ) ,
301
310
} ;
302
311
303
- let package_root = manifest_file. parent ( ) . unwrap ( ) ;
304
-
305
- let inherit_cell: LazyCell < InheritableFields > = LazyCell :: new ( ) ;
306
- let inherit = || {
307
- inherit_cell
308
- . try_borrow_with ( || load_inheritable_fields ( gctx, manifest_file, & workspace_config) )
309
- } ;
310
- let workspace_root = || inherit ( ) . map ( |fields| fields. ws_root ( ) . as_path ( ) ) ;
311
-
312
312
if let Some ( original_package) = original_toml. package ( ) {
313
313
let package_name = & original_package. name ;
314
314
You can’t perform that action at this time.
0 commit comments