Skip to content

Commit

Permalink
Remove some mut.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob McWhirter committed Jul 19, 2024
1 parent 54e4744 commit 0efa9fc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions common/src/db/multi_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ impl<T: QuerySelect> ColumnsPrefixed for T {
ColumnRef::Column(name)
| ColumnRef::TableColumn(_, name)
| ColumnRef::SchemaTableColumn(_, _, name) => {
let mut prefixed = String::new();
prefixed.push_str(prefix);
prefixed.push_str(&name.to_string());

let prefixed = format!("{prefix}{}", name.to_string());
self = self.column_as(col, prefixed);
}
ColumnRef::Asterisk => {
Expand Down

0 comments on commit 0efa9fc

Please sign in to comment.