Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

run cargo fmt, (not meant to be merged) #5624

Closed
wants to merge 3 commits into from

Conversation

guanqun
Copy link
Contributor

@guanqun guanqun commented May 15, 2017

This is only for preview purpose.

@@ -21,7 +21,8 @@ const MIN_RUSTC_VERSION: &'static str = "1.15.1";
fn main() {
let is = rustc_version::version().unwrap();
let required = MIN_RUSTC_VERSION.parse().unwrap();
assert!(is >= required, format!("
assert!(is >= required,
Copy link
Contributor

@NikVolf NikVolf May 15, 2017

Choose a reason for hiding this comment

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

already discussed, we will not align code this way, but

assert!(is >= required,
    other_para,
    final_param);

or

assert!(
    is >= required,
    other_para,
    final_param
);

Copy link
Contributor

Choose a reason for hiding this comment

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

and almost everything below is about this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

probably, the rustfmt is confused by the multiple lines in format!. Let me check if rustfmt has an option to format like this.

&cmd.dirs.ipc_path(),
Arc::new(Miner::with_spec(&spec)),
).map_err(|e| format!("Client service error: {:?}", e))?;
let service = ClientService::start(client_config, &spec, &client_path, &snapshot_path, &cmd.dirs.ipc_path(), Arc::new(Miner::with_spec(&spec)))
Copy link
Contributor

Choose a reason for hiding this comment

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

no way :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure which option controls the behavior...

@5chdn 5chdn added the A1-onice 🌨 Pull request is reviewed well, but should not yet be merged. label May 16, 2017
@guanqun guanqun closed this May 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A1-onice 🌨 Pull request is reviewed well, but should not yet be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants