Skip to content

Commit 291e5aa

Browse files
shayne-fletchermeta-codesync[bot]
authored andcommitted
lints (#1711)
Summary: Pull Request resolved: #1711 lints Reviewed By: casteryh Differential Revision: D85866741 fbshipit-source-id: 9110b08297455785dc2fbd1ba1641f56a4bf2cbe
1 parent 7be37de commit 291e5aa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

hyperactor_telemetry/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,15 @@ const LOG_LEVEL_ERROR: &str = "error";
4545

4646
// Span field constants
4747
const SPAN_FIELD_RECORDING: &str = "recording";
48+
#[allow(dead_code)]
4849
const SPAN_FIELD_RECORDER: &str = "recorder";
4950

5051
// Environment value constants
5152
const ENV_VALUE_LOCAL: &str = "local";
5253
const ENV_VALUE_MAST_EMULATOR: &str = "mast_emulator";
5354
const ENV_VALUE_MAST: &str = "mast";
5455
const ENV_VALUE_TEST: &str = "test";
56+
#[allow(dead_code)]
5557
const ENV_VALUE_LOCAL_MAST_SIMULATOR: &str = "local_mast_simulator";
5658

5759
pub mod in_memory_reader;

hyperactor_telemetry/src/recorder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ impl Entry {
170170
self.value = Value::String(buf);
171171
}
172172

173-
fn set_debug(&mut self, name: &'static str, value: &(dyn std::fmt::Debug)) {
173+
fn set_debug(&mut self, name: &'static str, value: &dyn std::fmt::Debug) {
174174
self.reset();
175175
let mut buf = self.buffer.take().unwrap_or_else(String::new);
176176

@@ -325,7 +325,7 @@ impl Visit for Event {
325325
self.next_field().set_error(field.name(), value);
326326
}
327327

328-
fn record_debug(&mut self, field: &tracing::field::Field, value: &(dyn std::fmt::Debug)) {
328+
fn record_debug(&mut self, field: &tracing::field::Field, value: &dyn std::fmt::Debug) {
329329
self.next_field().set_debug(field.name(), value);
330330
}
331331
}

0 commit comments

Comments
 (0)