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
2021-07-27 14:46:28 +02:00
committed by GitHub
parent 77ad07e347
commit a0b548b37d
29 changed files with 1375 additions and 1196 deletions
+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 {