-
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.
Answered by
feoh
Dec 2, 2024
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.
0 replies
Answer selected by
feoh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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