style: Migrate to stable-only rustfmt configuration
- Remove nightly-only features from .rustfmt.toml and vendor/ss58-registry/rustfmt.toml - Removed features: imports_granularity, wrap_comments, comment_width, reorder_impl_items, spaces_around_ranges, binop_separator, match_arm_blocks, trailing_semicolon, trailing_comma - Format all 898 affected files with stable rustfmt - Ensures long-term reliability without nightly toolchain dependency
This commit is contained in:
@@ -44,8 +44,7 @@ fn bizinikiwi_node_path() -> PathBuf {
|
||||
}
|
||||
|
||||
// Fall back to finding in target directory
|
||||
let target_dir =
|
||||
std::env::var("CARGO_TARGET_DIR").unwrap_or_else(|_| "target".to_string());
|
||||
let target_dir = std::env::var("CARGO_TARGET_DIR").unwrap_or_else(|_| "target".to_string());
|
||||
let profile = if cfg!(debug_assertions) { "debug" } else { "release" };
|
||||
PathBuf::from(target_dir).join(profile).join("bizinikiwi-node")
|
||||
}
|
||||
@@ -285,8 +284,9 @@ pub async fn block_hash(block_number: u64, url: &str) -> Result<Hash, String> {
|
||||
.map_err(|_| "Couldn't get block hash".to_string())?;
|
||||
|
||||
match result {
|
||||
ListOrValue::Value(maybe_block_hash) if maybe_block_hash.is_some() =>
|
||||
Ok(maybe_block_hash.unwrap()),
|
||||
ListOrValue::Value(maybe_block_hash) if maybe_block_hash.is_some() => {
|
||||
Ok(maybe_block_hash.unwrap())
|
||||
},
|
||||
_ => Err("Couldn't get block hash".to_string()),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user