Skip to content

Format code using 'cargo fmt'#36

Open
Atul9 wants to merge 1 commit intohadronized:masterfrom
Atul9:cargo-fmt
Open

Format code using 'cargo fmt'#36
Atul9 wants to merge 1 commit intohadronized:masterfrom
Atul9:cargo-fmt

Conversation

@Atul9
Copy link

@Atul9 Atul9 commented Sep 12, 2019

No description provided.

where
K: Key + Into<Option<PathBuf>>,
T: 'static + for<'de> Deserialize<'de>,
{
Copy link
Owner

@hadronized hadronized Sep 12, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you can find a way to use rustfmt to have that curly brace on the line just above, I would happily merge! :

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@phaazon I am new to rust. I found that brace_style doesn’t respect PreferSameLine and its an open issue in rustfmt itself - rust-lang/rustfmt#3299 which is opened by you. Can you please guide me about how to go about this?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t really know what to do to fix this, besides fixing it on my own (or anyone who would like to).

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

Successfully merging this pull request may close these issues.

2 participants

Comments