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

Rustfmt formats generic args weirdly with tabs #3840

Closed
Boscop opened this issue Oct 6, 2019 · 0 comments · Fixed by #3856
Closed

Rustfmt formats generic args weirdly with tabs #3840

Boscop opened this issue Oct 6, 2019 · 0 comments · Fixed by #3856
Labels
only-with-option requires a non-default option value to reproduce poor-formatting

Comments

@Boscop
Copy link

Boscop commented Oct 6, 2019

I have hard_tabs enabled.
This is how it formats it:

impl<
		Target: FromEvent<A> + FromEvent<B>,
		A: Widget2<Ctx = C>,
		B: Widget2<Ctx = C>,
		C: for<'a> CtxFamily<'a>,
	> Widget2 for WidgetEventLifter<Target, A, B>
{
	type Ctx = C;
	type Event = Vec<Target>;

What I'd expect:

impl<
	Target: FromEvent<A> + FromEvent<B>,
	A: Widget2<Ctx = C>,
	B: Widget2<Ctx = C>,
	C: for<'a> CtxFamily<'a>,
> Widget2 for WidgetEventLifter<Target, A, B> {
	type Ctx = C;
	type Event = Vec<Target>;
@topecongiro topecongiro added the only-with-option requires a non-default option value to reproduce label Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
only-with-option requires a non-default option value to reproduce poor-formatting
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants