fix: Remove an immediate ref to a deref
Caught by clippy now. https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_refpull/24376/head
parent
b982bdaf2f
commit
3a501a4a10
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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(),
|
||||
})?;
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue