mirror of
https://github.com/openai/codex.git
synced 2026-04-24 06:35:50 +00:00
codex: fix instruction test clippy (#16964)
This commit is contained in:
@@ -345,7 +345,7 @@ async fn thread_fork_honors_explicit_null_thread_instructions() -> Result<()> {
|
||||
Some(&Value::String(String::new()))
|
||||
);
|
||||
assert!(
|
||||
developer_texts.iter().any(|text| text.is_empty()),
|
||||
developer_texts.iter().any(String::is_empty),
|
||||
"expected explicit empty developerInstructions to produce an empty developer instruction message: {developer_texts:?}"
|
||||
);
|
||||
} else {
|
||||
|
||||
@@ -259,7 +259,7 @@ async fn turn_start_honors_explicit_null_thread_instructions() -> Result<()> {
|
||||
Some(&Value::String(String::new()))
|
||||
);
|
||||
assert!(
|
||||
developer_texts.iter().any(|text| text.is_empty()),
|
||||
developer_texts.iter().any(String::is_empty),
|
||||
"expected explicit empty developerInstructions to produce an empty developer instruction message: {developer_texts:?}"
|
||||
);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user