fix: Remove an immediate ref to a deref

Caught by clippy now. https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref
pull/24376/head
Carol (Nichols || Goulding) 2022-08-11 14:14:53 -04:00
parent b982bdaf2f
commit 3a501a4a10
No known key found for this signature in database
GPG Key ID: E907EE5A736F87D4
3 changed files with 4 additions and 4 deletions

View File

@ -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
}
}

View File

@ -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(),
})?;

View File

@ -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 =