mirror of
https://github.com/openai/codex.git
synced 2026-04-30 03:12:20 +03:00
Add argument-comment Dylint runner (#14651)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#![warn(uncommented_anonymous_literal_argument)]
|
||||
|
||||
fn main() {
|
||||
let line = "{\"type\":\"response_item\"}";
|
||||
let _ = line.starts_with('{');
|
||||
let _ = line.find("type");
|
||||
let parts = ["type", "response_item"];
|
||||
let _ = parts.join("\n");
|
||||
}
|
||||
Reference in New Issue
Block a user