diff --git a/bin/sozo/src/commands/mod.rs b/bin/sozo/src/commands/mod.rs index 788d0b8fe2..158fd8bfed 100644 --- a/bin/sozo/src/commands/mod.rs +++ b/bin/sozo/src/commands/mod.rs @@ -53,8 +53,8 @@ pub enum Commands { Init(InitArgs), #[command(about = "Remove generated artifacts, manifests and abis")] Clean(CleanArgs), - #[command(about = "Run a migration, declaring and deploying contracts as necessary to update \ - the world")] + #[command(about = "Run a migration, declaring and deploying contracts as necessary to \ + update the world")] Migrate(Box), #[command(about = "Developer mode: watcher for building and migration")] Dev(DevArgs), diff --git a/crates/katana/executor/src/implementation/blockifier/state.rs b/crates/katana/executor/src/implementation/blockifier/state.rs index 2d2c2bfeb0..ed91e9d313 100644 --- a/crates/katana/executor/src/implementation/blockifier/state.rs +++ b/crates/katana/executor/src/implementation/blockifier/state.rs @@ -134,11 +134,7 @@ impl ContractClassProvider for CachedState { return Ok(None); }; - if hash.0 == FieldElement::ZERO { - Ok(None) - } else { - Ok(Some(hash.0)) - } + if hash.0 == FieldElement::ZERO { Ok(None) } else { Ok(Some(hash.0)) } } fn sierra_class( @@ -163,11 +159,7 @@ impl StateProvider for CachedState { return Ok(None); }; - if hash.0 == FieldElement::ZERO { - Ok(None) - } else { - Ok(Some(hash.0)) - } + if hash.0 == FieldElement::ZERO { Ok(None) } else { Ok(Some(hash.0)) } } fn nonce( diff --git a/crates/katana/storage/provider/src/error.rs b/crates/katana/storage/provider/src/error.rs index 3876bbeec7..c02fda220d 100644 --- a/crates/katana/storage/provider/src/error.rs +++ b/crates/katana/storage/provider/src/error.rs @@ -73,7 +73,9 @@ pub enum ProviderError { /// Error when a contract nonce change entry is not found but the block number of when the /// change happen exists in the nonce change list. - #[error("Missing contract nonce change entry for contract {contract_address} at block {block}")] + #[error( + "Missing contract nonce change entry for contract {contract_address} at block {block}" + )] MissingContractNonceChangeEntry { /// The block number of when the change happen. block: BlockNumber,