Skip to content

Commit 263bb49

Browse files
Suppress dead_code warnings in hetzner module
Add #[allow(dead_code)] to structs and functions that may be used in the future but are currently unused. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f57afa7 commit 263bb49

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/hetzner.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ pub struct PublicNet {
4343
pub ipv4: Ipv4,
4444
}
4545

46+
#[allow(dead_code)]
4647
#[derive(Debug, Serialize, Deserialize)]
4748
pub struct IpAddress {
4849
pub ip: String,
@@ -89,11 +90,13 @@ struct CreateServerResponse {
8990
server: Server,
9091
}
9192

93+
#[allow(dead_code)]
9294
#[derive(Debug, Deserialize)]
9395
struct ErrorResponse {
9496
error: ErrorDetail,
9597
}
9698

99+
#[allow(dead_code)]
97100
#[derive(Debug, Deserialize)]
98101
struct ErrorDetail {
99102
message: String,
@@ -338,7 +341,9 @@ impl HetznerClient {
338341
#[derive(Debug, Deserialize)]
339342
struct ServerTypesAvailable {
340343
available: Vec<u64>,
344+
#[allow(dead_code)]
341345
available_for_migration: Vec<u64>,
346+
#[allow(dead_code)]
342347
supported: Vec<u64>,
343348
}
344349

@@ -370,6 +375,7 @@ impl HetznerClient {
370375
.collect())
371376
}
372377

378+
#[allow(dead_code)]
373379
pub async fn get_server(&self, id: u64) -> Result<Server> {
374380
let url = format!("{}/servers/{}", HETZNER_API_BASE, id);
375381

@@ -448,6 +454,7 @@ final_message: "FFmpeg worker is ready!"
448454
}
449455

450456
/// Cloud-init config with SSH key access
457+
#[allow(dead_code)]
451458
pub fn worker_cloud_init_with_ssh(
452459
queue_url: &str,
453460
binary_url: &str,

0 commit comments

Comments
 (0)