Skip to content

Commit fe7161e

Browse files
authored
remove feature flags around chrono::DateTime (#155)
It was moved into the main deps in #143. This clears up some warnings about unused imports and variables
1 parent 03aec69 commit fe7161e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/metrics/proto.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,7 @@ pub fn metric_proto_to_df(metric: MetricProto) -> Result<Arc<Metric>, DataFusion
383383
Some(MetricValueProto::StartTimestamp(start_ts)) => match start_ts.value {
384384
Some(value) => {
385385
let timestamp = Timestamp::new();
386-
#[cfg(feature = "integration")]
387386
timestamp.set(DateTime::from_timestamp_nanos(value));
388-
#[cfg(not(feature = "integration"))]
389-
{ /* DateTime not available without integration feature */ }
390387
Ok(Arc::new(Metric::new_with_labels(
391388
MetricValue::StartTimestamp(timestamp),
392389
partition,
@@ -402,10 +399,7 @@ pub fn metric_proto_to_df(metric: MetricProto) -> Result<Arc<Metric>, DataFusion
402399
Some(MetricValueProto::EndTimestamp(end_ts)) => match end_ts.value {
403400
Some(value) => {
404401
let timestamp = Timestamp::new();
405-
#[cfg(feature = "integration")]
406402
timestamp.set(DateTime::from_timestamp_nanos(value));
407-
#[cfg(not(feature = "integration"))]
408-
{ /* DateTime not available without integration feature */ }
409403
Ok(Arc::new(Metric::new_with_labels(
410404
MetricValue::EndTimestamp(timestamp),
411405
partition,

0 commit comments

Comments
 (0)