diff --git a/src/routes/server.rs b/src/routes/server.rs index edcde98..95d2e86 100644 --- a/src/routes/server.rs +++ b/src/routes/server.rs @@ -227,6 +227,7 @@ pub async fn clear_log(AdminAuth(auth): AdminAuth) -> Result<(), StatusCode> { /// Structure of a telemetry message coming from a client #[derive(Debug, Deserialize)] +#[allow(unused)] pub struct TelemetryMessage { /// The telemetry message values pub values: Vec<(String, String)>, diff --git a/src/session/models/mod.rs b/src/session/models/mod.rs index 2cf95aa..0d8be19 100644 --- a/src/session/models/mod.rs +++ b/src/session/models/mod.rs @@ -95,6 +95,7 @@ impl TdfDeserializeOwned for InstanceHost { /// Details about an instance. This is used for the redirector system /// to both encode for redirection and decode for the retriever system #[derive(TdfDeserialize)] +#[allow(unused)] pub struct InstanceDetails { /// The networking information for the instance #[tdf(tag = "ADDR")] diff --git a/src/session/models/stats.rs b/src/session/models/stats.rs index d187204..ff56c3b 100644 --- a/src/session/models/stats.rs +++ b/src/session/models/stats.rs @@ -15,6 +15,7 @@ pub struct SubmitGameReportRequest { pub struct GameReport { // Must be read since it uses the same duplicate tag #[tdf(tag = "GAME")] + #[allow(unused)] pub game_ids: VarIntList, #[tdf(tag = "GAME")] @@ -34,6 +35,7 @@ pub struct GameReportGame { pub struct GameReportPlayerData { /// Locale string encoded as int #[tdf(tag = "CTRY")] + #[allow(unused)] pub country: u32, /// Number of challenge points the player has #[tdf(tag = "NCHP")] diff --git a/src/session/models/util.rs b/src/session/models/util.rs index 5f1c26f..5b16a03 100644 --- a/src/session/models/util.rs +++ b/src/session/models/util.rs @@ -344,6 +344,7 @@ pub struct SetClientMetricsRequest { /// Upnp last result code. #[tdf(tag = "ULRC")] + #[allow(unused)] pub last_result_code: i32, /// Upnp metrics report NAT type.