File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ impl<'cfg> Workspace<'cfg> {
159
159
ws. root_manifest = ws. find_root ( manifest_path) ?;
160
160
}
161
161
162
- ws. load_workspace_metadata ( ) ?;
162
+ ws. custom_metadata = ws . load_workspace_config ( ) ?. and_then ( |cfg| cfg . custom_metadata ) ;
163
163
ws. find_members ( ) ?;
164
164
ws. resolve_behavior = match ws. root_maybe ( ) {
165
165
MaybePackage :: Package ( p) => p. manifest ( ) . resolve_behavior ( ) ,
@@ -498,15 +498,6 @@ impl<'cfg> Workspace<'cfg> {
498
498
Ok ( None )
499
499
}
500
500
501
- /// After the root of a workspace has been located, sets the custom_metadata, if it exists.
502
- pub fn load_workspace_metadata ( & mut self ) -> CargoResult < ( ) > {
503
- if let Some ( workspace_config) = self . load_workspace_config ( ) ? {
504
- self . custom_metadata = workspace_config. custom_metadata ;
505
- }
506
-
507
- Ok ( ( ) )
508
- }
509
-
510
501
/// After the root of a workspace has been located, probes for all members
511
502
/// of a workspace.
512
503
///
You can’t perform that action at this time.
0 commit comments