mirror of
https://github.com/openai/codex.git
synced 2026-04-24 06:35:50 +00:00
address clippy lints for workspace context
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user