Use into_owned over to_string for Cow<str> (#39024)
This removes unnecessary allocations when the `Cow` is already owned Release Notes: - N/A *or* Added/Fixed/Improved ...
This commit is contained in:
@@ -351,7 +351,7 @@ async fn test_handle_successful_run_in_terminal_reverse_request(
|
||||
.fake_reverse_request::<RunInTerminal>(RunInTerminalRequestArguments {
|
||||
kind: None,
|
||||
title: None,
|
||||
cwd: std::env::temp_dir().to_string_lossy().to_string(),
|
||||
cwd: std::env::temp_dir().to_string_lossy().into_owned(),
|
||||
args: vec![],
|
||||
env: None,
|
||||
args_can_be_interpreted_by_shell: None,
|
||||
|
||||
Reference in New Issue
Block a user