diff --git a/influxdb_line_protocol/src/lib.rs b/influxdb_line_protocol/src/lib.rs index 68e832fd3f..d90360d70a 100644 --- a/influxdb_line_protocol/src/lib.rs +++ b/influxdb_line_protocol/src/lib.rs @@ -418,7 +418,7 @@ impl<'a> EscapedStr<'a> { /// single slice. The slice may not point into the original /// buffer. pub fn as_str(&self) -> &str { - &*self + self } } diff --git a/iox_query/src/exec/field.rs b/iox_query/src/exec/field.rs index f9ab859c4f..a0614b0169 100644 --- a/iox_query/src/exec/field.rs +++ b/iox_query/src/exec/field.rs @@ -123,7 +123,7 @@ impl FieldIndexes { .iter() .map(|column_name| { schema - .index_of(&*column_name) + .index_of(column_name) .context(ColumnNotFoundForFieldSnafu { column_name: column_name.as_ref(), }) @@ -157,7 +157,7 @@ impl FieldIndexes { .map(|(field_name, timestamp_name)| { let field_index = schema - .index_of(&*field_name) + .index_of(field_name) .context(ColumnNotFoundForFieldSnafu { column_name: field_name.as_ref(), })?; diff --git a/write_buffer/src/kafka/mod.rs b/write_buffer/src/kafka/mod.rs index bebb68f3c8..82a433a68f 100644 --- a/write_buffer/src/kafka/mod.rs +++ b/write_buffer/src/kafka/mod.rs @@ -74,7 +74,7 @@ impl RSKafkaProducer { Box::new(partition_client), topic_name.clone(), KafkaPartition::new(sequencer_id.try_into().unwrap()), - &*metric_registry, + metric_registry, ); let mut producer_builder =