Skip to content

Commit f4cd8d6

Browse files
committed
chore: Narrow the FDv2 dead-code allow from the whole module to specific fields
1 parent ce8b6e8 commit f4cd8d6

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

launchdarkly-server-sdk/src/fdv2/wire.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,19 @@ pub(super) struct ServerIntent {
1818
#[derive(Debug, Deserialize)]
1919
#[serde(rename_all = "camelCase")]
2020
pub(super) struct ServerIntentPayload {
21+
// Parsed from the wire but not used; only intent_code is read.
22+
#[allow(dead_code)]
2123
pub(super) id: String,
24+
#[allow(dead_code)]
2225
pub(super) target: u64,
2326
pub(super) intent_code: IntentCode,
27+
#[allow(dead_code)]
2428
pub(super) reason: String,
2529
}
2630

2731
#[derive(Debug, Deserialize)]
2832
pub(super) struct PutObject {
33+
#[allow(dead_code)] // Parsed from the wire but not used.
2934
pub(super) version: u64,
3035
pub(super) kind: String,
3136
pub(super) key: String,

launchdarkly-server-sdk/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ mod data_system;
6565
mod data_system_builders;
6666
mod evaluation;
6767
mod events;
68-
#[allow(dead_code)] // Some items are consumed only by later data-system phases.
6968
mod fdv2;
7069
mod feature_requester;
7170
mod feature_requester_builders;

0 commit comments

Comments
 (0)