Skip to content

Commit

Permalink
clippy and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sayon committed Dec 3, 2024
1 parent 5e36133 commit 9e434d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
7 changes: 1 addition & 6 deletions compiler_tester/src/compilers/vyper/mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,6 @@ impl Mode {

impl std::fmt::Display for Mode {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"{} {}",
self.repr_without_version(),
self.vyper_version,
)
write!(f, "{} {}", self.repr_without_version(), self.vyper_version,)
}
}
7 changes: 1 addition & 6 deletions compiler_tester/src/compilers/yul/mode_upstream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ impl Mode {

impl std::fmt::Display for Mode {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"{} {}",
self.repr_without_version(),
self.solc_version,
)
write!(f, "{} {}", self.repr_without_version(), self.solc_version,)
}
}
6 changes: 3 additions & 3 deletions compiler_tester/src/summary/benchmark_adapters/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
use crate::test::case::input::identifier::InputIdentifier;

impl Into<benchmark_analyzer::Input> for InputIdentifier {
impl From<InputIdentifier> for benchmark_analyzer::Input {
///
/// Converts `[InputIdentifier]` to the representation used by the benchmark.
///
fn into(self) -> benchmark_analyzer::Input {
match self {
fn from(val: InputIdentifier) -> Self {
match val {
InputIdentifier::Deployer {
contract_identifier,
} => benchmark_analyzer::Input::Deployer {
Expand Down

0 comments on commit 9e434d7

Please sign in to comment.