Remove logic duplication

This commit is contained in:
Esteban Küber 2022-11-03 12:26:59 -07:00
parent 42d7174bbc
commit c0e481731b
16 changed files with 37 additions and 52 deletions

View file

@ -10,7 +10,7 @@ LL |
LL | let x = n.to_string();
| ^^^^^^^^^^^^^ value borrowed here after move
|
note: consider changing this parameter type in `push` to borrow instead if ownering the value isn't necessary
note: consider changing this parameter type in method `push` to borrow instead if ownering the value isn't necessary
--> $DIR/use-after-move-implicity-coerced-object.rs:17:27
|
LL | fn push(&mut self, n: Box<dyn ToString + 'static>) {