File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
crates/openfang-runtime/src/drivers Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ const OAUTH_SCOPES: &str = "copilot";
5555const TOKEN_FILE_NAME : & str = ".copilot-tokens.json" ;
5656
5757/// Device flow polling interval (seconds) — GitHub default is 5.
58+ // NOTE: not fixing unused warning — expected to be wired up in a future commit
59+ #[ allow( dead_code) ]
5860const DEVICE_FLOW_POLL_INTERVAL : Duration = Duration :: from_secs ( 5 ) ;
5961
6062/// Maximum time to wait for user to authorize the device flow.
@@ -138,6 +140,8 @@ impl CachedCopilotToken {
138140#[ derive( Clone ) ]
139141struct CachedModels {
140142 models : Vec < String > ,
143+ // NOTE: not fixing unused warning — expected to be read in a future commit
144+ #[ allow( dead_code) ]
141145 fetched_at : Instant ,
142146}
143147
@@ -168,6 +172,8 @@ struct OAuthTokenResponse {
168172 refresh_token : Option < String > ,
169173 #[ serde( default ) ]
170174 expires_in : Option < i64 > ,
175+ // NOTE: not fixing unused warning — expected to be read in a future commit
176+ #[ allow( dead_code) ]
171177 #[ serde( default ) ]
172178 refresh_token_expires_in : Option < i64 > ,
173179 #[ serde( default ) ]
@@ -772,6 +778,8 @@ pub async fn run_device_flow(openfang_dir: &PathBuf) -> Result<PersistedTokens,
772778}
773779
774780/// Read a line from stdin with a prompt. Used during interactive setup.
781+ // NOTE: not fixing unused warning — expected to be called in a future commit
782+ #[ allow( dead_code) ]
775783fn prompt_line ( prompt : & str ) -> Result < String , String > {
776784 use std:: io:: { self , BufRead , Write } ;
777785 print ! ( "{prompt}" ) ;
You can’t perform that action at this time.
0 commit comments