Add rustfmt.toml from substrate repo (#161)

* Add rustfmt.toml from substrate repo

* Apply rustfmt to code base

* Fix formatting

* Move rustfmt job to the top
This commit is contained in:
Alexander Theißen authored and GitHub committed 2021-07-27 14:46:28 +02:00
1 parent 77ad07e347
commit a0b548b37d
29 files changed
+1375 -1196

No files matched your search

+1 -6
View File
@@ -16,12 +16,7 @@ pub struct SourceInput<'a> {
impl<'a> SourceInput<'a> {
pub fn new<'b>(target_dir: &'b str, bin_name: &'b str) -> SourceInput<'b> {
SourceInput {
target_dir,
bin_name,
final_name: bin_name,
target: SourceTarget::Emscripten,
}
SourceInput { target_dir, bin_name, final_name: bin_name, target: SourceTarget::Emscripten }
}
pub fn unknown(mut self) -> Self {