Skip to content

Commit 4d04fb3

Browse files
committed
fmt
1 parent 709e130 commit 4d04fb3

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

batcher/aligned-sdk/src/core/types.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ pub enum Network {
409409
Holesky,
410410
HoleskyStage,
411411
Mainnet,
412-
Custom(String, String)
412+
Custom(String, String),
413413
}
414414

415415
impl Network {
@@ -450,23 +450,18 @@ impl FromStr for Network {
450450
return Err(
451451
"Invalid network, possible values are: \"holesky\", \"holesky-stage\", \"devnet\", \"mainnet\", \"'custom <BATCHER_PAYMENT_SERVICE_ADDRESS> <ALIGNED_SERVICE_MANAGER_ADDRESS>'\""
452452
.to_string(),
453-
)
453+
);
454454
}
455455
let parts: Vec<&str> = s.split_whitespace().collect();
456456

457457
if parts.len() == 3 {
458-
Ok(Network::Custom(
459-
parts[1].to_string(),
460-
parts[2].to_string()
461-
))
458+
Ok(Network::Custom(parts[1].to_string(), parts[2].to_string()))
462459
} else {
463460
Err(
464461
"Invalid network, possible values are: \"holesky\", \"holesky-stage\", \"devnet\", \"mainnet\", \"'custom <BATCHER_PAYMENT_SERVICE_ADDRESS, ALIGNED_SERVICE_MANAGER_ADDRESS>'\""
465462
.to_string()
466463
)
467464
}
468-
469-
470465
}
471466
}
472467
}

0 commit comments

Comments
 (0)