-
Notifications
You must be signed in to change notification settings - Fork 1.7k
run cargo fmt, (not meant to be merged) #5624
Conversation
@@ -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, |
There was a problem hiding this comment.
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
);
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no way :)
There was a problem hiding this comment.
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...
This is only for preview purpose.