mirror of
https://github.com/openai/codex.git
synced 2026-11-02 19:43:24 +00:00
Apply argument comment lint across codex-rs
This commit is contained in:
@@ -182,7 +182,7 @@ pub fn generate_ts_with_options(
|
||||
}
|
||||
|
||||
pub fn generate_json(out_dir: &Path) -> Result<()> {
|
||||
generate_json_with_experimental(out_dir, false)
|
||||
generate_json_with_experimental(out_dir, /*experimental_api=*/ false)
|
||||
}
|
||||
|
||||
pub fn generate_json_with_experimental(out_dir: &Path, experimental_api: bool) -> Result<()> {
|
||||
@@ -1984,7 +1984,7 @@ pub(crate) fn generate_index_ts_tree(tree: &mut BTreeMap<PathBuf, String>) {
|
||||
if !v2_entries.is_empty() {
|
||||
tree.insert(
|
||||
PathBuf::from("v2").join("index.ts"),
|
||||
index_ts_entries(&v2_entries, false),
|
||||
index_ts_entries(&v2_entries, /*has_v2_ts=*/ false),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -201,7 +201,7 @@ impl ThreadHistoryBuilder {
|
||||
let mut turn = self
|
||||
.current_turn
|
||||
.take()
|
||||
.unwrap_or_else(|| self.new_turn(None));
|
||||
.unwrap_or_else(|| self.new_turn(/*id=*/ None));
|
||||
let id = self.next_item_id();
|
||||
let content = self.build_user_inputs(payload);
|
||||
turn.items.push(ThreadItem::UserMessage { id, content });
|
||||
@@ -937,7 +937,7 @@ impl ThreadHistoryBuilder {
|
||||
|
||||
fn ensure_turn(&mut self) -> &mut PendingTurn {
|
||||
if self.current_turn.is_none() {
|
||||
let turn = self.new_turn(None);
|
||||
let turn = self.new_turn(/*id=*/ None);
|
||||
return self.current_turn.insert(turn);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user