Skip to content

Commit

Permalink
Fix tests which still relied on WorkspacePackages::from_iter
Browse files Browse the repository at this point in the history
  • Loading branch information
foresterre committed Oct 19, 2024
1 parent 13ee5fd commit ac2ce77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/sub_command/find/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ fn create_test_context() -> FindContext {
},
environment: EnvironmentContext {
root_crate_path: Utf8PathBuf::new(),
workspace_packages: WorkspacePackages::from_iter([]),
workspace_packages: WorkspacePackages::default(),
},
}
}
6 changes: 3 additions & 3 deletions src/writer/write_msrv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ mod tests {

let env = EnvironmentContext {
root_crate_path: root.to_path_buf(),
workspace_packages: WorkspacePackages::from_iter([]),
workspace_packages: WorkspacePackages::default(),
};

let index = ReleaseIndex::from_iter(vec![rust_releases::Release::new_stable(
Expand Down Expand Up @@ -87,7 +87,7 @@ mod tests {

let env = EnvironmentContext {
root_crate_path: root.to_path_buf(),
workspace_packages: WorkspacePackages::from_iter([]),
workspace_packages: WorkspacePackages::default(),
};

let index = ReleaseIndex::from_iter(vec![]);
Expand Down Expand Up @@ -119,7 +119,7 @@ mod tests {

let env = EnvironmentContext {
root_crate_path: root.to_path_buf(),
workspace_packages: WorkspacePackages::from_iter([]),
workspace_packages: WorkspacePackages::default(),
};

write_msrv(
Expand Down

0 comments on commit ac2ce77

Please sign in to comment.