Skip to content

Commit

Permalink
Remove redundant to_string()
Browse files Browse the repository at this point in the history
  • Loading branch information
Jurshsmith committed Apr 18, 2024
1 parent 5003eeb commit 74640a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chaindexing/src/states/filters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl Filters {
}
}
pub fn add(mut self, field: impl ToString, value: impl ToString) -> Self {
self.add_mut(field.to_string(), value.to_string());
self.add_mut(field, value);
self
}
pub fn add_mut(&mut self, field: impl ToString, value: impl ToString) {
Expand Down
2 changes: 1 addition & 1 deletion chaindexing/src/states/updates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ impl Updates {
}
}
pub fn add(mut self, field: impl ToString, value: impl ToString) -> Self {
self.add_mut(field.to_string(), value.to_string());
self.add_mut(field, value);
self
}
pub fn add_mut(&mut self, field: impl ToString, value: impl ToString) {
Expand Down

0 comments on commit 74640a4

Please sign in to comment.