Skip to content

Commit 6f1de0e

Browse files
committed
chore: resolve (ignore) dead code
build is failing on dead code, i decided to add exception (ignore) this since i assume this will be used in later commits
1 parent a10b2f1 commit 6f1de0e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

crates/openfang-runtime/src/drivers/copilot.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ const OAUTH_SCOPES: &str = "copilot";
5555
const 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)]
5860
const 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)]
139141
struct 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)]
775783
fn prompt_line(prompt: &str) -> Result<String, String> {
776784
use std::io::{self, BufRead, Write};
777785
print!("{prompt}");

0 commit comments

Comments
 (0)