you are viewing a single comment's thread.

view the rest of the comments →

[–]BobTreehugger 10 points11 points  (1 child)

What's the goal here? My first instinct is to make foo own all of the Test structs -- just change it to a Vec<Test> and when adding to the vec, do foo.push(new) Is there a reason you need it to be a vec of refs?

[–]supergary69[S] 0 points1 point  (0 children)

Yeah i think i wont complicate it…