Skip to content

Commit c55b649

Browse files
committed
Fix clippy: variable does not need to be passed as &mut
Signed-off-by: Matthias Beyer <[email protected]>
1 parent ef7188f commit c55b649

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/path/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ impl Expression {
193193
match value.kind {
194194
ValueKind::Table(ref incoming_map) => {
195195
// Pull out another table
196-
let mut target = if let ValueKind::Table(ref mut map) = root.kind {
196+
let target = if let ValueKind::Table(ref mut map) = root.kind {
197197
map.entry(id.clone())
198198
.or_insert_with(|| Map::<String, Value>::new().into())
199199
} else {
@@ -202,7 +202,7 @@ impl Expression {
202202

203203
// Continue the deep merge
204204
for (key, val) in incoming_map {
205-
Expression::Identifier(key.clone()).set(&mut target, val.clone());
205+
Expression::Identifier(key.clone()).set(target, val.clone());
206206
}
207207
}
208208

0 commit comments

Comments
 (0)