-
Other folks have suggested that I need a Refcell? But that wasn't mentioned in exercise or hints and I feel like I'm missing something really basic here. My code: https://gist.github.com/feoh/eee5da5e7809d19e2cc4f60ce1cc7c58 This is the error I get:
I'd appreciate any hints anyone may have. I'm SUPER stuck. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
OK now I'm feeling sheepish about having posted. I figured out the solution. You just have to re-use a single &mut Team for both .entry().or_insert() Solution: https://gist.github.com/feoh/608dc1495143021c38ad2a46beaf42d1 |
Beta Was this translation helpful? Give feedback.
OK now I'm feeling sheepish about having posted.
I figured out the solution. You just have to re-use a single &mut Team for both .entry().or_insert()
Solution: https://gist.github.com/feoh/608dc1495143021c38ad2a46beaf42d1