Skip to content

Commit d213f7d

Browse files
chore: avoid forced clone on label
Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>
1 parent afa3afd commit d213f7d

File tree

1 file changed

+2
-2
lines changed
  • crates/tauri-runtime-wry/src

1 file changed

+2
-2
lines changed

crates/tauri-runtime-wry/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2389,8 +2389,8 @@ pub struct WindowWrapper {
23892389
}
23902390

23912391
impl WindowWrapper {
2392-
pub fn label(&self) -> String {
2393-
self.label.clone()
2392+
pub fn label(&self) -> &str {
2393+
&self.label
23942394
}
23952395
}
23962396

0 commit comments

Comments
 (0)