We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I have here to write a get so I did this :
pub fn get(&self, id: &u32) -> &Ticket { self.data.get(id) }
But that gives me a Option which we did not learn. So is there another way to make this part work ?
The text was updated successfully, but these errors were encountered:
In the exercise the function should panic if a ticket id does not exist. With rust-analyzer it will suggest to add a .expect(msg)
Sorry, something went wrong.
No branches or pull requests
Hello,
I have here to write a get so I did this :
But that gives me a Option which we did not learn.
So is there another way to make this part work ?
The text was updated successfully, but these errors were encountered: