Skip to content

Commit 28e1e39

Browse files
style: improve code formatting and whitespace consistency
1 parent be10d7f commit 28e1e39

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/main.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
8686
.unwrap_or_else(|| cli_config.keypair_path.clone());
8787

8888
// Create a signer directly from the keypair path
89-
let signer = solana_sdk::signature::read_keypair_file(&keypair_path)
90-
.unwrap_or_else(|err| {
89+
let signer =
90+
solana_sdk::signature::read_keypair_file(&keypair_path).unwrap_or_else(|err| {
9191
eprintln!("Error reading keypair file {}: {}", keypair_path, err);
9292
exit(1);
9393
});
@@ -241,7 +241,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
241241
eprintln!("No node subcommand provided");
242242
exit(1);
243243
};
244-
244+
245245
match node_sub_command {
246246
"list" => {
247247
// List all nodes
@@ -257,7 +257,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
257257
.get_one::<String>("status")
258258
.map(|s| s.as_str())
259259
.unwrap_or("all");
260-
let svm = node_sub_matches.get_one::<String>("svm").map(|s| s.as_str());
260+
let svm = node_sub_matches
261+
.get_one::<String>("svm")
262+
.map(|s| s.as_str());
261263
let json_output = node_sub_matches.contains_id("json");
262264

263265
match nodes::list_all_nodes(
@@ -935,4 +937,4 @@ mod test {
935937
// Assert that the deserialized data matches the original
936938
assert_eq!(faux, in_faux);
937939
}
938-
}
940+
}

0 commit comments

Comments
 (0)