Created
January 11, 2020 15:48
-
-
Save trimoq/bf4ea7d36f7581930b449759c6caf1b9 to your computer and use it in GitHub Desktop.
Using the user_repo without knowing about its type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn add_user(self, user: User){ | |
// whatever | |
self.user_repo.add(user); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment