Skip to content

Commit 02f7b77

Browse files
committed
more linting
1 parent acc99b7 commit 02f7b77

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

launchdarkly-server-sdk/src/events/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ pub struct EventsConfiguration {
2121
all_attributes_private: bool,
2222
private_attributes: HashSet<Reference>,
2323
omit_anonymous_contexts: bool,
24-
compress_events: bool,
2524
}
2625

2726
#[cfg(test)]
@@ -38,7 +37,6 @@ fn create_events_configuration(
3837
all_attributes_private: false,
3938
private_attributes: HashSet::new(),
4039
omit_anonymous_contexts: false,
41-
compress_events: false,
4240
}
4341
}
4442

launchdarkly-server-sdk/src/events/processor_builders.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ where
155155
all_attributes_private: self.all_attributes_private,
156156
private_attributes: self.private_attributes.clone(),
157157
omit_anonymous_contexts: self.omit_anonymous_contexts,
158-
compress_events: self.compress_events,
159158
};
160159

161160
let events_processor =

launchdarkly-server-sdk/src/events/sender.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ pub struct HyperEventSender<C> {
4343
sdk_key: String,
4444
http: hyper::Client<C>,
4545
default_headers: HashMap<&'static str, String>,
46+
47+
// used with compress feature
48+
#[allow(dead_code)]
4649
compress_events: bool,
4750
}
4851

@@ -119,6 +122,8 @@ where
119122
}
120123
};
121124

125+
// mut is needed for compress feature
126+
#[allow(unused_mut)]
122127
let mut additional_headers = self.default_headers.clone();
123128

124129
#[cfg(feature = "compress")]

0 commit comments

Comments
 (0)