mirror of
https://github.com/openai/codex.git
synced 2026-11-29 07:35:16 +00:00
Add argument-comment Dylint runner (#14651)
This commit is contained in:
1 parent
70eddad6b0
commit
4b31848f5b
20 files changed
+2348
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#![warn(uncommented_anonymous_literal_argument)]
|
||||
|
||||
struct Client;
|
||||
|
||||
impl Client {
|
||||
fn set_flag(&self, enabled: bool) {}
|
||||
}
|
||||
|
||||
fn create_openai_url(base_url: Option<String>, retry_count: usize) -> String {
|
||||
let _ = (base_url, retry_count);
|
||||
String::new()
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let client = Client;
|
||||
let _ = create_openai_url(None, 3);
|
||||
client.set_flag(true);
|
||||
}
|
||||
Reference in new issue
Block a user