Skip to content

Commit

Permalink
fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
kpob committed Jun 28, 2024
1 parent c8fd6ac commit dbec463
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/actions/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ impl TestFilters {
_ => self
.targets
.iter()
.map(|t| vec!["--test", t.as_str()])
.flatten()
.flat_map(|t| vec!["--test", t.as_str()])
.collect(),
};

Expand Down
6 changes: 3 additions & 3 deletions src/odra_toml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl Contract {
.split_terminator("::")
.next()
.unwrap_or_else(|| MalformedFqn.print_and_die())
.replace("-", "_")
.replace('-', "_")
.to_string()
}

Expand All @@ -31,7 +31,7 @@ impl Contract {
project
.members
.iter()
.find(|m| m.name.replace("-", "_") == self.module_name())
.find(|m| m.name.replace('-', "_") == self.module_name())
.unwrap_or_else(|| {
Error::CrateOfContractNotFound(self.module_name()).print_and_die()
})
Expand Down Expand Up @@ -101,7 +101,7 @@ impl OdraToml {
.split_terminator("::")
.next()
.unwrap_or_else(|| Error::MalformedFqn.print_and_die())
== crate_name.replace("-", "_")
== crate_name.replace('-', "_")
})
}
}

0 comments on commit dbec463

Please sign in to comment.