Reduce allocations (#30693)
Removes a unnecessary string conversion and some clones Release Notes: - N/A
This commit is contained in:
@@ -475,7 +475,7 @@ impl TitleBar {
|
||||
.label_size(LabelSize::Small)
|
||||
.tooltip(Tooltip::text(format!(
|
||||
"{} is sharing this project. Click to follow.",
|
||||
host_user.github_login.clone()
|
||||
host_user.github_login
|
||||
)))
|
||||
.on_click({
|
||||
let host_peer_id = host.peer_id;
|
||||
|
||||
Reference in New Issue
Block a user