Skip to content

Commit

Permalink
chain sim - fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
BiancaIalangi committed Sep 20, 2024
1 parent eb7dd57 commit c69e89a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ impl Config {
// Returns if chain type is chain simulator
pub fn use_chain_simulator(&self) -> bool {
match self.chain_type.as_str() {
"simulator" => return true,
"real" => return false,
"simulator" => true,
"real" => false,
_ => panic!(
"Invalid chain type: {}. Expected 'simulator' or 'real'.",
self.chain_type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ impl Config {
// Returns if chain type is chain simulator
pub fn use_chain_simulator(&self) -> bool {
match self.chain_type.as_str() {
"simulator" => return true,
"real" => return false,
"simulator" => true,
"real" => false,
_ => panic!(
"Invalid chain type: {}. Expected 'simulator' or 'real'.",
self.chain_type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ impl Config {
// Returns if true if chain type is chain simulator
pub fn use_chain_simulator(&self) -> bool {
match self.chain_type.as_str() {
"simulator" => return true,
"real" => return false,
"simulator" => true,
"real" => false,
_ => panic!(
"Invalid chain type: {}. Expected 'simulator' or 'real'.",
self.chain_type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ impl Config {
// Returns if chain type is chain simulator
pub fn use_chain_simulator(&self) -> bool {
match self.chain_type.as_str() {
"simulator" => return true,
"real" => return false,
"simulator" => true,
"real" => false,
_ => panic!(
"Invalid chain type: {}. Expected 'simulator' or 'real'.",
self.chain_type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ impl Config {
// Returns if chain type is chain simulator
pub fn use_chain_simulator(&self) -> bool {
match self.chain_type.as_str() {
"simulator" => return true,
"real" => return false,
"simulator" => true,
"real" => false,
_ => panic!(
"Invalid chain type: {}. Expected 'simulator' or 'real'.",
self.chain_type
Expand Down

0 comments on commit c69e89a

Please sign in to comment.