Reduce allocations (#30693)
Removes a unnecessary string conversion and some clones Release Notes: - N/A
This commit is contained in:
parent
fcfe4e2c14
commit
bc99a86bb7
17 changed files with 48 additions and 57 deletions
|
@ -20,7 +20,7 @@ impl Modal {
|
|||
pub fn new(id: impl Into<SharedString>, scroll_handle: Option<ScrollHandle>) -> Self {
|
||||
let id = id.into();
|
||||
|
||||
let container_id = ElementId::Name(format!("{}_container", id.clone()).into());
|
||||
let container_id = ElementId::Name(format!("{}_container", id).into());
|
||||
Self {
|
||||
id: ElementId::Name(id),
|
||||
header: ModalHeader::new(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue