Skip to content

Commit d8c20a6

Browse files
committed
Remove unnecessary clones
1 parent ccd8780 commit d8c20a6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

crates/ark/src/lsp/symbols.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub(crate) fn symbols(
8181
name: name.to_string(),
8282
kind: SymbolKind::FUNCTION,
8383
location: Location {
84-
uri: uri.clone(),
84+
uri,
8585
range,
8686
},
8787
tags: None,
@@ -96,7 +96,7 @@ pub(crate) fn symbols(
9696
name: title.to_string(),
9797
kind: SymbolKind::STRING,
9898
location: Location {
99-
uri: uri.clone(),
99+
uri,
100100
range,
101101
},
102102
tags: None,
@@ -111,7 +111,7 @@ pub(crate) fn symbols(
111111
name: name.clone(),
112112
kind: SymbolKind::VARIABLE,
113113
location: Location {
114-
uri: uri.clone(),
114+
uri,
115115
range,
116116
},
117117
tags: None,
@@ -125,7 +125,7 @@ pub(crate) fn symbols(
125125
name: name.clone(),
126126
kind: SymbolKind::METHOD,
127127
location: Location {
128-
uri: uri.clone(),
128+
uri,
129129
range,
130130
},
131131
tags: None,

0 commit comments

Comments
 (0)