Skip to content

Commit 1325783

Browse files
committed
Fix unused code warnings on macos
1 parent 885970d commit 1325783

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/values/event_values.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ use tracing::field;
55
use crate::values::*;
66

77
// Implemented on the EventBuilder types
8+
#[allow(dead_code)]
89
pub(crate) trait AddFieldAndValue {
910
fn add_field_value(&mut self, fv: &crate::values::FieldAndValue);
1011
}
1112

1213
// We need a wrapper because we cannot implement an external trait (field::Visit) on an external type (EventBuilder)
14+
#[allow(dead_code)]
1315
pub(crate) struct EventBuilderVisitorWrapper<T: AddFieldAndValue> {
1416
wrapped: T,
1517
}

src/values/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ impl From<char> for ValueTypes {
7373
}
7474
}
7575

76+
#[allow(dead_code)]
7677
pub(crate) struct FieldAndValue<'a> {
7778
#[allow(dead_code)]
7879
pub(crate) field_name: &'static str,

0 commit comments

Comments
 (0)