Skip to content

Commit 3e196c0

Browse files
committed
remove a couple of clones
1 parent 00d2f60 commit 3e196c0

File tree

32 files changed

+71
-90
lines changed

32 files changed

+71
-90
lines changed

src/tools/rust-analyzer/crates/hir-def/src/expr_store/lower/generics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ impl GenericParamsCollector {
270270
let self_ = Name::new_symbol_root(sym::Self_);
271271
let idx = self.type_or_consts.alloc(
272272
TypeParamData {
273-
name: Some(self_.clone()),
273+
name: Some(self_),
274274
default: None,
275275
provenance: TypeParamProvenance::TraitSelf,
276276
}

src/tools/rust-analyzer/crates/hir-expand/src/attrs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ impl Attr {
320320
) -> impl IntoIterator<Item = Self> {
321321
let is_cfg_attr = self.path.as_ident().is_some_and(|name| *name == sym::cfg_attr);
322322
if !is_cfg_attr {
323-
return smallvec![self.clone()];
323+
return smallvec![self];
324324
}
325325

326326
let subtree = match self.token_tree_value() {

src/tools/rust-analyzer/crates/hir-ty/src/dyn_compatibility.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ fn receiver_is_dispatchable(
515515
trait_id: to_chalk_trait_id(trait_),
516516
substitution: Substitution::from_iter(
517517
Interner,
518-
std::iter::once(unsized_self_ty.clone().cast(Interner))
518+
std::iter::once(unsized_self_ty.cast(Interner))
519519
.chain(placeholder_subst.iter(Interner).skip(1).cloned()),
520520
),
521521
});

src/tools/rust-analyzer/crates/hir-ty/src/infer/closure.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ impl InferenceContext<'_> {
127127
let prev_diverges = mem::replace(&mut self.diverges, Diverges::Maybe);
128128
let prev_closure = mem::replace(&mut self.current_closure, id);
129129
let prev_ret_ty = mem::replace(&mut self.return_ty, body_ret_ty.clone());
130-
let prev_ret_coercion = self.return_coercion.replace(CoerceMany::new(body_ret_ty.clone()));
130+
let prev_ret_coercion = self.return_coercion.replace(CoerceMany::new(body_ret_ty));
131131
let prev_resume_yield_tys = mem::replace(&mut self.resume_yield_tys, resume_yield_tys);
132132

133133
self.with_breakable_ctx(BreakableKind::Border, None, None, |this| {

src/tools/rust-analyzer/crates/hir-ty/src/infer/expr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -827,9 +827,9 @@ impl InferenceContext<'_> {
827827
}
828828
let assoc = self.resolve_ops_index_output();
829829
self.resolve_associated_type_with_params(
830-
self_ty.clone(),
830+
self_ty,
831831
assoc,
832-
&[index_ty.clone().cast(Interner)],
832+
&[index_ty.cast(Interner)],
833833
)
834834
} else {
835835
self.err_ty()

src/tools/rust-analyzer/crates/hir-ty/src/infer/pat.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ impl InferenceContext<'_> {
435435
decl: Option<DeclContext>,
436436
) -> Ty {
437437
let (expectation_type, expectation_lt) = match expected.as_reference() {
438-
Some((inner_ty, lifetime, _exp_mut)) => (inner_ty.clone(), lifetime.clone()),
438+
Some((inner_ty, lifetime, _exp_mut)) => (inner_ty.clone(), lifetime),
439439
None => {
440440
let inner_ty = self.table.new_type_var();
441441
let inner_lt = self.table.new_lifetime_var();
@@ -597,7 +597,7 @@ impl InferenceContext<'_> {
597597
let size = consteval::usize_const(self.db, Some(len as u128), self.owner.krate(self.db));
598598

599599
let elem_ty = self.table.new_type_var();
600-
let array_ty = TyKind::Array(elem_ty.clone(), size).intern(Interner);
600+
let array_ty = TyKind::Array(elem_ty, size).intern(Interner);
601601
Some(array_ty)
602602
}
603603

src/tools/rust-analyzer/crates/hir-ty/src/infer/unify.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ impl<'a> InferenceTable<'a> {
10291029
};
10301030
let sized_pred = WhereClause::Implemented(TraitRef {
10311031
trait_id: to_chalk_trait_id(sized),
1032-
substitution: Substitution::from1(Interner, ty.clone()),
1032+
substitution: Substitution::from1(Interner, ty),
10331033
});
10341034
let goal = GoalData::DomainGoal(chalk_ir::DomainGoal::Holds(sized_pred)).intern(Interner);
10351035
matches!(self.try_obligation(goal), Some(Solution::Unique(_)))

src/tools/rust-analyzer/crates/hir/src/lib.rs

+9-17
Original file line numberDiff line numberDiff line change
@@ -3685,24 +3685,16 @@ impl GenericDef {
36853685
}
36863686

36873687
let source_map = match def {
3688-
GenericDefId::AdtId(AdtId::EnumId(it)) => {
3689-
db.enum_signature_with_source_map(it).1.clone()
3690-
}
3691-
GenericDefId::AdtId(AdtId::StructId(it)) => {
3692-
db.struct_signature_with_source_map(it).1.clone()
3693-
}
3694-
GenericDefId::AdtId(AdtId::UnionId(it)) => {
3695-
db.union_signature_with_source_map(it).1.clone()
3696-
}
3688+
GenericDefId::AdtId(AdtId::EnumId(it)) => db.enum_signature_with_source_map(it).1,
3689+
GenericDefId::AdtId(AdtId::StructId(it)) => db.struct_signature_with_source_map(it).1,
3690+
GenericDefId::AdtId(AdtId::UnionId(it)) => db.union_signature_with_source_map(it).1,
36973691
GenericDefId::ConstId(_) => return,
3698-
GenericDefId::FunctionId(it) => db.function_signature_with_source_map(it).1.clone(),
3699-
GenericDefId::ImplId(it) => db.impl_signature_with_source_map(it).1.clone(),
3692+
GenericDefId::FunctionId(it) => db.function_signature_with_source_map(it).1,
3693+
GenericDefId::ImplId(it) => db.impl_signature_with_source_map(it).1,
37003694
GenericDefId::StaticId(_) => return,
3701-
GenericDefId::TraitAliasId(it) => {
3702-
db.trait_alias_signature_with_source_map(it).1.clone()
3703-
}
3704-
GenericDefId::TraitId(it) => db.trait_signature_with_source_map(it).1.clone(),
3705-
GenericDefId::TypeAliasId(it) => db.type_alias_signature_with_source_map(it).1.clone(),
3695+
GenericDefId::TraitAliasId(it) => db.trait_alias_signature_with_source_map(it).1,
3696+
GenericDefId::TraitId(it) => db.trait_signature_with_source_map(it).1,
3697+
GenericDefId::TypeAliasId(it) => db.type_alias_signature_with_source_map(it).1,
37063698
};
37073699

37083700
expr_store_diagnostics(db, acc, &source_map);
@@ -3802,7 +3794,7 @@ impl GenericSubstitution {
38023794
container_params
38033795
.chain(self_params)
38043796
.filter_map(|(ty, name)| {
3805-
Some((name?.symbol().clone(), Type { ty: ty.clone(), env: self.env.clone() }))
3797+
Some((name?.symbol().clone(), Type { ty, env: self.env.clone() }))
38063798
})
38073799
.collect()
38083800
}

src/tools/rust-analyzer/crates/hir/src/semantics.rs

+8-12
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ impl<'db> SemanticsImpl<'db> {
926926
token: InRealFile<SyntaxToken>,
927927
mut cb: impl FnMut(InFile<SyntaxToken>, SyntaxContext) -> ControlFlow<T>,
928928
) -> Option<T> {
929-
self.descend_into_macros_impl(token.clone(), &mut cb)
929+
self.descend_into_macros_impl(token, &mut cb)
930930
}
931931

932932
/// Descends the token into expansions, returning the tokens that matches the input
@@ -958,17 +958,13 @@ impl<'db> SemanticsImpl<'db> {
958958
let text = token.text();
959959
let kind = token.kind();
960960
if let Ok(token) = self.wrap_token_infile(token.clone()).into_real_file() {
961-
self.descend_into_macros_breakable(
962-
token.clone(),
963-
|InFile { value, file_id: _ }, _ctx| {
964-
let mapped_kind = value.kind();
965-
let any_ident_match =
966-
|| kind.is_any_identifier() && value.kind().is_any_identifier();
967-
let matches =
968-
(kind == mapped_kind || any_ident_match()) && text == value.text();
969-
if matches { ControlFlow::Break(value) } else { ControlFlow::Continue(()) }
970-
},
971-
)
961+
self.descend_into_macros_breakable(token, |InFile { value, file_id: _ }, _ctx| {
962+
let mapped_kind = value.kind();
963+
let any_ident_match =
964+
|| kind.is_any_identifier() && value.kind().is_any_identifier();
965+
let matches = (kind == mapped_kind || any_ident_match()) && text == value.text();
966+
if matches { ControlFlow::Break(value) } else { ControlFlow::Continue(()) }
967+
})
972968
} else {
973969
None
974970
}

src/tools/rust-analyzer/crates/hir/src/semantics/source_to_def.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ impl SourceToDefCtx<'_, '_> {
559559
let item = match ast::Item::cast(value.clone()) {
560560
Some(it) => it,
561561
None => {
562-
let variant = ast::Variant::cast(value.clone())?;
562+
let variant = ast::Variant::cast(value)?;
563563
return this
564564
.enum_variant_to_def(InFile::new(file_id, &variant))
565565
.map(Into::into);

src/tools/rust-analyzer/crates/hir/src/source_analyzer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,7 @@ impl SourceAnalyzer {
14311431
}
14321432

14331433
fn ty_of_expr(&self, expr: ast::Expr) -> Option<&Ty> {
1434-
self.infer()?.type_of_expr_or_pat(self.expr_id(expr.clone())?)
1434+
self.infer()?.type_of_expr_or_pat(self.expr_id(expr)?)
14351435
}
14361436
}
14371437

src/tools/rust-analyzer/crates/ide-assists/src/handlers/convert_bool_then.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ pub(crate) fn convert_bool_then_to_if(acc: &mut Assists, ctx: &AssistContext<'_>
196196
// Wrap all tails in `Some(...)`
197197
let none_path = mapless_make.expr_path(mapless_make.ident_path("None"));
198198
let some_path = mapless_make.expr_path(mapless_make.ident_path("Some"));
199-
for_each_tail_expr(&ast::Expr::BlockExpr(closure_body.clone()), &mut |e| {
199+
for_each_tail_expr(&ast::Expr::BlockExpr(closure_body), &mut |e| {
200200
let e = match e {
201201
ast::Expr::BreakExpr(e) => e.expr(),
202202
ast::Expr::ReturnExpr(e) => e.expr(),

src/tools/rust-analyzer/crates/ide-assists/src/handlers/convert_from_to_tryfrom.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ pub(crate) fn convert_from_to_tryfrom(acc: &mut Assists, ctx: &AssistContext<'_>
8080
let from_fn_name = builder.make_mut(from_fn_name);
8181
let tail_expr = builder.make_mut(tail_expr);
8282
let return_exprs = return_exprs.map(|r| builder.make_mut(r)).collect_vec();
83-
let associated_items = builder.make_mut(associated_items).clone();
83+
let associated_items = builder.make_mut(associated_items);
8484

8585
ted::replace(
8686
trait_ty.syntax(),

src/tools/rust-analyzer/crates/ide-assists/src/handlers/generate_function.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -392,14 +392,14 @@ impl FunctionBuilder {
392392
// Focus the return type if there is one
393393
match ret_type {
394394
Some(ret_type) => {
395-
edit.add_placeholder_snippet(cap, ret_type.clone());
395+
edit.add_placeholder_snippet(cap, ret_type);
396396
}
397397
None => {
398-
edit.add_placeholder_snippet(cap, tail_expr.clone());
398+
edit.add_placeholder_snippet(cap, tail_expr);
399399
}
400400
}
401401
} else {
402-
edit.add_placeholder_snippet(cap, tail_expr.clone());
402+
edit.add_placeholder_snippet(cap, tail_expr);
403403
}
404404
}
405405

src/tools/rust-analyzer/crates/ide-assists/src/handlers/wrap_unwrap_cfg_attr.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ pub(crate) fn wrap_unwrap_cfg_attr(acc: &mut Assists, ctx: &AssistContext<'_>) -
116116
(Some(attr), Some(ident))
117117
if attr.simple_name().map(|v| v.eq("derive")).unwrap_or_default() =>
118118
{
119-
Some(attempt_get_derive(attr.clone(), ident))
119+
Some(attempt_get_derive(attr, ident))
120120
}
121121

122122
(Some(attr), _) => Some(WrapUnwrapOption::WrapAttr(attr)),
@@ -128,7 +128,7 @@ pub(crate) fn wrap_unwrap_cfg_attr(acc: &mut Assists, ctx: &AssistContext<'_>) -
128128
NodeOrToken::Node(node) => ast::Attr::cast(node).map(WrapUnwrapOption::WrapAttr),
129129
NodeOrToken::Token(ident) if ident.kind() == syntax::T![ident] => {
130130
let attr = ident.parent_ancestors().find_map(ast::Attr::cast)?;
131-
Some(attempt_get_derive(attr.clone(), ident))
131+
Some(attempt_get_derive(attr, ident))
132132
}
133133
_ => None,
134134
}
@@ -233,7 +233,7 @@ fn wrap_cfg_attr(acc: &mut Assists, ctx: &AssistContext<'_>, attr: ast::Attr) ->
233233
if let Some(meta) = attr.meta() {
234234
if let (Some(eq), Some(expr)) = (meta.eq_token(), meta.expr()) {
235235
raw_tokens.push(NodeOrToken::Token(make::tokens::whitespace(" ")));
236-
raw_tokens.push(NodeOrToken::Token(eq.clone()));
236+
raw_tokens.push(NodeOrToken::Token(eq));
237237
raw_tokens.push(NodeOrToken::Token(make::tokens::whitespace(" ")));
238238

239239
expr.syntax().descendants_with_tokens().for_each(|it| {

src/tools/rust-analyzer/crates/ide-completion/src/context/analysis.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -387,11 +387,7 @@ fn expand(
387387

388388
match (
389389
sema.expand_macro_call(&actual_macro_call),
390-
sema.speculative_expand_macro_call(
391-
&actual_macro_call,
392-
&speculative_args,
393-
fake_ident_token.clone(),
394-
),
390+
sema.speculative_expand_macro_call(&actual_macro_call, &speculative_args, fake_ident_token),
395391
) {
396392
// successful expansions
397393
(Some(actual_expansion), Some((fake_expansion, fake_mapped_tokens))) => {

src/tools/rust-analyzer/crates/ide-db/src/items_locator.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ pub fn items_with_name_in_module<T>(
8686
let local_query = match name {
8787
NameToImport::Prefix(exact_name, case_sensitive)
8888
| NameToImport::Exact(exact_name, case_sensitive) => {
89-
let mut local_query = symbol_index::Query::new(exact_name.clone());
89+
let mut local_query = symbol_index::Query::new(exact_name);
9090
local_query.assoc_search_mode(assoc_item_search);
9191
if prefix {
9292
local_query.prefix();
@@ -99,7 +99,7 @@ pub fn items_with_name_in_module<T>(
9999
local_query
100100
}
101101
NameToImport::Fuzzy(fuzzy_search_string, case_sensitive) => {
102-
let mut local_query = symbol_index::Query::new(fuzzy_search_string.clone());
102+
let mut local_query = symbol_index::Query::new(fuzzy_search_string);
103103
local_query.fuzzy();
104104
local_query.assoc_search_mode(assoc_item_search);
105105

src/tools/rust-analyzer/crates/ide-diagnostics/src/handlers/type_mismatch.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ fn remove_unnecessary_wrapper(
195195
let db = ctx.sema.db;
196196
let root = db.parse_or_expand(expr_ptr.file_id);
197197
let expr = expr_ptr.value.to_node(&root);
198-
let expr = ctx.sema.original_ast_node(expr.clone())?;
198+
let expr = ctx.sema.original_ast_node(expr)?;
199199

200200
let Expr::CallExpr(call_expr) = expr else {
201201
return None;

src/tools/rust-analyzer/crates/intern/src/symbol.rs

+17-17
Original file line numberDiff line numberDiff line change
@@ -163,28 +163,28 @@ impl Symbol {
163163

164164
pub fn integer(i: usize) -> Self {
165165
match i {
166-
0 => symbols::INTEGER_0.clone(),
167-
1 => symbols::INTEGER_1.clone(),
168-
2 => symbols::INTEGER_2.clone(),
169-
3 => symbols::INTEGER_3.clone(),
170-
4 => symbols::INTEGER_4.clone(),
171-
5 => symbols::INTEGER_5.clone(),
172-
6 => symbols::INTEGER_6.clone(),
173-
7 => symbols::INTEGER_7.clone(),
174-
8 => symbols::INTEGER_8.clone(),
175-
9 => symbols::INTEGER_9.clone(),
176-
10 => symbols::INTEGER_10.clone(),
177-
11 => symbols::INTEGER_11.clone(),
178-
12 => symbols::INTEGER_12.clone(),
179-
13 => symbols::INTEGER_13.clone(),
180-
14 => symbols::INTEGER_14.clone(),
181-
15 => symbols::INTEGER_15.clone(),
166+
0 => symbols::INTEGER_0,
167+
1 => symbols::INTEGER_1,
168+
2 => symbols::INTEGER_2,
169+
3 => symbols::INTEGER_3,
170+
4 => symbols::INTEGER_4,
171+
5 => symbols::INTEGER_5,
172+
6 => symbols::INTEGER_6,
173+
7 => symbols::INTEGER_7,
174+
8 => symbols::INTEGER_8,
175+
9 => symbols::INTEGER_9,
176+
10 => symbols::INTEGER_10,
177+
11 => symbols::INTEGER_11,
178+
12 => symbols::INTEGER_12,
179+
13 => symbols::INTEGER_13,
180+
14 => symbols::INTEGER_14,
181+
15 => symbols::INTEGER_15,
182182
i => Symbol::intern(&format!("{i}")),
183183
}
184184
}
185185

186186
pub fn empty() -> Self {
187-
symbols::__empty.clone()
187+
symbols::__empty
188188
}
189189

190190
#[inline]

src/tools/rust-analyzer/crates/load-cargo/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ impl ProjectFolders {
292292
};
293293

294294
let file_set_roots = vec![VfsPath::from(ratoml_path.to_owned())];
295-
let entry = vfs::loader::Entry::Files(vec![ratoml_path.to_owned()]);
295+
let entry = vfs::loader::Entry::Files(vec![ratoml_path]);
296296

297297
res.watch.push(res.load.len());
298298
res.load.push(entry);

src/tools/rust-analyzer/crates/project-model/src/env.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub(crate) fn inject_cargo_package_env(env: &mut Env, package: &PackageData) {
2525
env.set("CARGO_PKG_VERSION_PATCH", package.version.patch.to_string());
2626
env.set("CARGO_PKG_VERSION_PRE", package.version.pre.to_string());
2727

28-
env.set("CARGO_PKG_AUTHORS", package.authors.join(":").clone());
28+
env.set("CARGO_PKG_AUTHORS", package.authors.join(":"));
2929

3030
env.set("CARGO_PKG_NAME", package.name.clone());
3131
env.set("CARGO_PKG_DESCRIPTION", package.description.as_deref().unwrap_or_default());

src/tools/rust-analyzer/crates/project-model/src/workspace.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,7 @@ fn detached_file_to_crate_graph(
13701370
Edition::CURRENT,
13711371
display_name.clone(),
13721372
None,
1373-
cfg_options.clone(),
1373+
cfg_options,
13741374
None,
13751375
Env::default(),
13761376
CrateOrigin::Local {

src/tools/rust-analyzer/crates/query-group-macro/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ pub(crate) fn query_group_impl(
210210
.into_iter()
211211
.filter(|fn_arg| matches!(fn_arg, FnArg::Typed(_)))
212212
.map(|fn_arg| match fn_arg {
213-
FnArg::Typed(pat_type) => pat_type.clone(),
213+
FnArg::Typed(pat_type) => pat_type,
214214
FnArg::Receiver(_) => unreachable!("this should have been filtered out"),
215215
})
216216
.collect::<Vec<syn::PatType>>();

src/tools/rust-analyzer/crates/rust-analyzer/src/cli/unresolved_references.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl flags::UnresolvedReferences {
3030
let root =
3131
vfs::AbsPathBuf::assert_utf8(std::env::current_dir()?.join(&self.path)).normalize();
3232
let config = crate::config::Config::new(
33-
root.clone(),
33+
root,
3434
lsp_types::ClientCapabilities::default(),
3535
vec![],
3636
None,

src/tools/rust-analyzer/crates/rust-analyzer/src/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ impl ConfigChange {
11831183
source_root_map: Arc<FxHashMap<SourceRootId, SourceRootId>>,
11841184
) {
11851185
assert!(self.source_map_change.is_none());
1186-
self.source_map_change = Some(source_root_map.clone());
1186+
self.source_map_change = Some(source_root_map);
11871187
}
11881188
}
11891189

src/tools/rust-analyzer/crates/rust-analyzer/src/global_state.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ impl GlobalState {
511511

512512
self.fetch_workspaces_queue.request_op(
513513
format!("workspace vfs file change: {path}"),
514-
FetchWorkspaceRequest { path: Some(path.to_owned()), force_crate_graph_reload },
514+
FetchWorkspaceRequest { path: Some(path), force_crate_graph_reload },
515515
);
516516
}
517517
}

src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/notification.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ fn run_flycheck(state: &mut GlobalState, vfs_path: VfsPath) -> bool {
309309
let task = move || -> std::result::Result<(), Cancelled> {
310310
if invocation_strategy_once {
311311
let saved_file = vfs_path.as_path().map(|p| p.to_owned());
312-
world.flycheck[0].restart_workspace(saved_file.clone());
312+
world.flycheck[0].restart_workspace(saved_file);
313313
}
314314

315315
let target = TargetSpec::for_file(&world, file_id)?.and_then(|it| {

src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/request.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2210,7 +2210,7 @@ fn runnable_action_links(
22102210
let label = update_test.label();
22112211
if let Some(r) = to_proto::make_update_runnable(&r, update_test) {
22122212
let update_command = to_proto::command::run_single(&r, label.unwrap().as_str());
2213-
group.commands.push(to_command_link(update_command, r.label.clone()));
2213+
group.commands.push(to_command_link(update_command, r.label));
22142214
}
22152215
}
22162216

0 commit comments

Comments
 (0)