Skip to content

Commit

Permalink
Remove needless explicit generic parameter
Browse files Browse the repository at this point in the history
Co-authored-by: Quentin Gliech <[email protected]>
  • Loading branch information
erikjohnston and sandhose authored Jan 8, 2024
1 parent d562f5f commit c2d5062
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust/src/events/internal_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl EventInternalMetadataData {

"send_on_behalf_of" => EventInternalMetadataData::SendOnBehalfOf(
value
.extract::<String>()
.extract()
.map(String::into_boxed_str)
.with_context(|| format!("'{key_str}' has invalid type"))?,
),
Expand All @@ -124,7 +124,7 @@ impl EventInternalMetadataData {
),
"txn_id" => EventInternalMetadataData::TxnId(
value
.extract::<String>()
.extract()
.map(String::into_boxed_str)
.with_context(|| format!("'{key_str}' has invalid type"))?,
),
Expand All @@ -135,7 +135,7 @@ impl EventInternalMetadataData {
),
"device_id" => EventInternalMetadataData::DeviceId(
value
.extract::<String>()
.extract()
.map(String::into_boxed_str)
.with_context(|| format!("'{key_str}' has invalid type"))?,
),
Expand Down

0 comments on commit c2d5062

Please sign in to comment.