Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
amirylm committed Nov 4, 2024
1 parent 821c592 commit 1321d00
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rs/chainselectors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pub mod generated_chains;
mod tests {
use super::*;

use generated_chains::{ChainName, ChainId, ChainSelector};
use generated_chains::{ChainId, ChainName, ChainSelector};
use std::str::FromStr;

#[test]
Expand All @@ -18,7 +18,7 @@ mod tests {
#[test]
fn chain_from_unknown_id() {
assert_eq!(
ChainName::try_from(ChainId(0)).unwrap_err().to_string(),
ChainName::try_from(ChainId(0)).unwrap_err().to_string(),
"unknown chain id: 0",
);
}
Expand Down Expand Up @@ -56,7 +56,9 @@ mod tests {
#[test]
fn chain_from_selector_unknown() {
assert_eq!(
ChainName::try_from(ChainSelector(1)).unwrap_err().to_string(),
ChainName::try_from(ChainSelector(1))
.unwrap_err()
.to_string(),
"unknown chain selector: 1"
);
}
Expand Down

0 comments on commit 1321d00

Please sign in to comment.