mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
enable assigning_clones lint
This commit is contained in:
parent
793d809ac6
commit
c9859a9b2d
6 changed files with 14 additions and 14 deletions
|
|
@ -997,8 +997,8 @@ impl KeyValueDatabase {
|
|||
.get(content_rule_transformation[0]);
|
||||
if rule.is_some() {
|
||||
let mut rule = rule.unwrap().clone();
|
||||
rule.rule_id =
|
||||
content_rule_transformation[1].to_owned();
|
||||
content_rule_transformation[1]
|
||||
.clone_into(&mut rule.rule_id);
|
||||
rules_list
|
||||
.content
|
||||
.shift_remove(content_rule_transformation[0]);
|
||||
|
|
@ -1027,7 +1027,7 @@ impl KeyValueDatabase {
|
|||
rules_list.underride.get(transformation[0]);
|
||||
if let Some(rule) = rule {
|
||||
let mut rule = rule.clone();
|
||||
rule.rule_id = transformation[1].to_owned();
|
||||
transformation[1].clone_into(&mut rule.rule_id);
|
||||
rules_list
|
||||
.underride
|
||||
.shift_remove(transformation[0]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue