address clippy lints for workspace context

This commit is contained in:
pash
2026-01-29 00:28:47 -08:00
parent ffa0486a41
commit edc4f8a2d0
2 changed files with 3 additions and 6 deletions

View File

@@ -1884,7 +1884,7 @@ impl Session {
let hint = cwd.file_name().and_then(|name| name.to_str()).map_or_else(
|| cwd.to_string_lossy().into_owned(),
|name| name.to_string(),
std::string::ToString::to_string,
);
let mut workspaces = BTreeMap::new();

View File

@@ -282,11 +282,8 @@ mod tests {
},
);
let workspace_configuration = WorkspaceConfiguration { workspaces };
let context = EnvironmentContext::new(
Some(cwd.clone()),
fake_shell(),
Some(workspace_configuration),
);
let context =
EnvironmentContext::new(Some(cwd), fake_shell(), Some(workspace_configuration));
let expected = r#"<environment_context>
<cwd>/repo</cwd>