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
I manually formatted this code as:
impl<'i, 'a, Input, Payload, A: Automaton<Input, Payload>> Iterator for Matches<'i, 'a, Input, Payload, A> { type Item = Match<Payload>; fn next(&mut self) -> Option<Self::Item> { let mut offset = self.offset; while offset < self.input.len() { self.state = self.aut.next_state(&self.state, &self.input[offset]); offset += 1; if let Some(m) = self.aut.get_match(&self.state, 0) { self.offset = offset; return Some(m); } } None } }
rustfmt --write-mode=diff:
rustfmt --write-mode=diff
-impl<'i, 'a, Input, Payload, A: Automaton<Input, Payload>>⏎ - Iterator for Matches<'i, 'a, Input, Payload, A>⏎ -{⏎ +impl<'i, 'a, Input, Payload, A: Automaton<Input, Payload>> Iterator for Matches<'i,⏎ + 'a,⏎ + Input,⏎ + Payload,⏎ + A> {⏎
The text was updated successfully, but these errors were encountered:
Try newer version of rustfmt. This have been fixed by #1148
Sorry, something went wrong.
Derp, totally forgot to check for updates 😅 You're right, it's fixed already.
No branches or pull requests
I manually formatted this code as:
rustfmt --write-mode=diff
:The text was updated successfully, but these errors were encountered: