Skip to content

Commit

Permalink
removed redundand generics
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelJastrzebski committed Sep 13, 2024
1 parent 673e23c commit 746320b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions tests/tester/src/exec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ use tc39_test262::{ErrorType, Harness, Outcome, Phase, SpecEdition, Test, TestSu

use self::js262::WorkerHandles;

pub(crate) trait RunTest<TO, TR> {
pub(crate) trait RunTest {
/// Runs the test.
fn run(&self, harness: &Harness, verbose: u8, optimizer_options: TO, console: bool) -> TR;
fn run(&self, harness: &Harness, verbose: u8, optimizer_options: OptimizerOptions, console: bool) -> TestResult;

/// Runs the test once, in strict or non-strict mode
fn run_once(
Expand All @@ -38,7 +38,7 @@ pub(crate) trait RunTest<TO, TR> {
) -> TestResult;
}

pub(crate) trait RunTestSuite<TO, TR> {
pub(crate) trait RunTestSuite{
/// Runs the test suite.
fn run(
&self,
Expand All @@ -51,7 +51,7 @@ pub(crate) trait RunTestSuite<TO, TR> {
) -> SuiteResult;
}

impl RunTestSuite<OptimizerOptions, SuiteResult> for TestSuite {
impl RunTestSuite for TestSuite {
/// Runs the test suite.
fn run(
&self,
Expand Down Expand Up @@ -187,7 +187,7 @@ impl RunTestSuite<OptimizerOptions, SuiteResult> for TestSuite {
}
}

impl RunTest<OptimizerOptions, TestResult> for Test {
impl RunTest for Test {
/// Runs the test.
fn run(
&self,
Expand Down
2 changes: 1 addition & 1 deletion tests/tester/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ mod tests {
use assert_cmd::Command;

fn cmd() -> Command {
let mut cmd: Command = assert_cmd::Command::cargo_bin("boa_tester").unwrap();
let mut cmd: Command = Command::cargo_bin("boa_tester").unwrap();
cmd.current_dir("../../");
cmd
}
Expand Down

0 comments on commit 746320b

Please sign in to comment.