Skip to content

Commit

Permalink
Deprecated set_current_dir_from_workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed May 22, 2024
1 parent 3085774 commit 1ec2ff4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions framework/scenario/src/facade/scenario_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,11 @@ impl ScenarioWorld {
self
}

/// Tells the tests where the crate lies relative to the workspace.
/// This ensures that the paths are set correctly, including in debug mode.
/// Older versions of the Rust compiler were setting a wrong path in the environment when debugging.
/// This method was made as a workaround to avoid this problem.
///
/// Fortunately, the issue was fixed in Rust, and so this function is no longer necessary.
#[deprecated(since = "0.50.2", note = "No longer needed, simply delete.")]
pub fn set_current_dir_from_workspace(&mut self, relative_path: &str) -> &mut Self {
let mut path = find_current_workspace().unwrap();
path.push(relative_path);
Expand Down

0 comments on commit 1ec2ff4

Please sign in to comment.