Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

potentially pointless method #9

Open
danieleades opened this issue Jan 3, 2019 · 0 comments
Open

potentially pointless method #9

danieleades opened this issue Jan 3, 2019 · 0 comments

Comments

@danieleades
Copy link

what is the purpose of the get_self(...) method on Client?

    pub fn get_self(&mut self) -> &mut Self {
        self
    }

it returns a mutable reference to self, but you can only call the method if you already have a mutable reference to self.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant