Skip to content

Commit

Permalink
chore: ignored unused linted fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtread committed Oct 13, 2024
1 parent 0a5566e commit 0fbb584
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)>,
Expand Down
1 change: 1 addition & 0 deletions src/session/models/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down
2 changes: 2 additions & 0 deletions src/session/models/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand All @@ -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")]
Expand Down
1 change: 1 addition & 0 deletions src/session/models/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0fbb584

Please sign in to comment.