diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 7360ec44..4aa291b3 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v3 - run: rustup show - uses: Swatinem/rust-cache@v2 - - run: cargo clippy + - run: cargo clippy --all -- -D warnings tests: runs-on: ubuntu-latest diff --git a/tests/common.rs b/tests/common.rs index 2ae4c0d4..025f1e00 100644 --- a/tests/common.rs +++ b/tests/common.rs @@ -52,7 +52,6 @@ pub fn compile_contracts() -> HashMap> { #[fixture] pub fn setup_runner(compile_contracts: &HashMap>) -> (CairoRunner, VirtualMachine) { // Load the test program - // let program_content = include_bytes!("../build/fact.json"); let program_content = compile_contracts.get("build/fact.json").unwrap(); let mut hint_processor = BuiltinHintProcessor::new_empty(); diff --git a/tests/snos.rs b/tests/snos.rs index 49602eda..2ed07593 100644 --- a/tests/snos.rs +++ b/tests/snos.rs @@ -41,8 +41,6 @@ fn snos_ok() { fn custom_hint_ok(compile_contracts: &HashMap>) { let program_content = compile_contracts.get("build/hint.json").unwrap(); - // let program_content = include_bytes!("../build/hint.json"); - // Wrap the Rust hint implementation in a Box smart pointer inside a HintFunc let hint = HintFunc(Box::new(print_a_hint)); @@ -70,8 +68,6 @@ fn custom_hint_ok(compile_contracts: &HashMap>) { fn test_different_outputs(compile_contracts: &HashMap>) { let program_content = compile_contracts.get("build/hint.json").unwrap(); - // let program_content = include_bytes!("../build/hint.json"); - // Wrap the Rust hint implementation in a Box smart pointer inside a HintFunc let hint = HintFunc(Box::new(print_a_hint)); @@ -90,6 +86,6 @@ fn test_different_outputs(compile_contracts: &HashMap>) { }, &mut hint_processor, ) - .expect("Couldn't run programm"); + .expect("Couldn't run program"); check_output_vs_python("build/different_output.json", virtual_machine); }