diff --git a/exercises/enums/enums3.cairo b/exercises/enums/enums3.cairo index d2e534777..ad2188f42 100644 --- a/exercises/enums/enums3.cairo +++ b/exercises/enums/enums3.cairo @@ -32,11 +32,11 @@ trait StateTrait { } impl StateImpl of StateTrait { fn change_color(ref self: State, new_color: (u8, u8, u8)) { - let State{color: _color, position, quit, } = self; + let State{color: _, position, quit, } = self; self = State { color: new_color, position: position, quit: quit, }; } fn quit(ref self: State) { - let State{color, position, quit: _quit, } = self; + let State{color, position, quit: _, } = self; self = State { color: color, position: position, quit: true, }; } @@ -45,7 +45,7 @@ impl StateImpl of StateTrait { } fn move_position(ref self: State, p: Point) { - let State{color, position: _posiotion, quit, } = self; + let State{color, position: _, quit, } = self; self = State { color: color, position: p, quit: quit, }; } diff --git a/exercises/starknet/basics/starknet1.cairo b/exercises/starknet/basics/starknet1.cairo index 539bf3258..23ecb6d50 100644 --- a/exercises/starknet/basics/starknet1.cairo +++ b/exercises/starknet/basics/starknet1.cairo @@ -41,7 +41,6 @@ mod test { #[available_gas(2000000000)] fn test_contract_view() { let dispatcher = deploy_contract(); - let _owner = dispatcher.get_owner(); assert('Joe' == dispatcher.get_owner(), 'Joe should be the owner.'); } diff --git a/exercises/starknet/basics/starknet2.cairo b/exercises/starknet/basics/starknet2.cairo index 1c5b6e3cf..3b676122c 100644 --- a/exercises/starknet/basics/starknet2.cairo +++ b/exercises/starknet/basics/starknet2.cairo @@ -55,7 +55,6 @@ mod test { #[test] #[available_gas(2000000000)] fn test_owner_setting() { - let _owner: felt252 = 'Jill'; let mut calldata = ArrayTrait::new(); calldata.append('Jill'); let (address0, _) = deploy_syscall( diff --git a/exercises/starknet/basics/starknet4.cairo b/exercises/starknet/basics/starknet4.cairo index 581d9fcf5..5f61646ef 100644 --- a/exercises/starknet/basics/starknet4.cairo +++ b/exercises/starknet/basics/starknet4.cairo @@ -112,7 +112,6 @@ mod test { fn test_stock_purchase() { let owner = util_felt_addr('Elizabeth'); let dispatcher = deploy_contract(); - let _result = dispatcher.get_owner(); // Call contract as owner starknet::testing::set_contract_address(owner);