File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -224,9 +224,9 @@ impl Manifests {
224
224
/// Update dependencies in Cargo.toml file(s) to match the corresponding
225
225
/// version in Cargo.lock.
226
226
fn sync_to_lockfile ( self , dry_run : bool ) -> Result < ( ) > {
227
- // Get locked dependencies. If there may be multiple Cargo.toml
228
- // files in the workspace, then they all share the same lockfile,
229
- // so it suffices to get the query metadata for any one of them .
227
+ // Get locked dependencies. For workspaces with multiple Cargo.toml
228
+ // files, there is only a single lockfile, so it suffices to get
229
+ // metadata for any one of Cargo.toml files .
230
230
let ( manifest, _package) = self . 0 . iter ( ) . next ( ) . expect ( "should have one" ) ;
231
231
let mut cmd = cargo_metadata:: MetadataCommand :: new ( ) ;
232
232
cmd. manifest_path ( manifest. path . clone ( ) ) ;
You can’t perform that action at this time.
0 commit comments