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
+4 -9
View File
@@ -1,10 +1,9 @@
#[cfg(features = "std")]
use crate::std::collections::HashMap as Map;
#[cfg(not(features = "std"))]
use crate::std::collections::BTreeMap as Map;
#[cfg(features = "std")]
use crate::std::collections::HashMap as Map;
use crate::std::num::NonZeroU32;
use crate::std::str::FromStr;
use crate::std::{num::NonZeroU32, str::FromStr};
use parity_wasm::elements::Instruction;
pub struct UnknownInstruction;
@@ -304,11 +303,7 @@ pub struct Set {
impl Default for Set {
fn default() -> Self {
Set {
regular: 1,
entries: Map::new(),
grow: 0,
}
Set { regular: 1, entries: Map::new(), grow: 0 }
}
}