Skip to content

Commit 0213ca1

Browse files
authored
Change allow to expect (#2984)
**Stack**: - #2984 ⬅ - #2983 - #2982 - #2981 - #2980 ⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do not merge manually using the UI - doing so may have unexpected results.*
1 parent eae5493 commit 0213ca1

File tree

62 files changed

+60
-95
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+60
-95
lines changed

crates/cheatnet/src/forking/cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl ForkCacheContent {
7575
}
7676
}
7777

78-
#[allow(clippy::to_string_trait_impl)]
78+
#[expect(clippy::to_string_trait_impl)]
7979
impl ToString for ForkCacheContent {
8080
fn to_string(&self) -> String {
8181
serde_json::to_string(self).expect("Could not serialize json cache")

crates/cheatnet/src/forking/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl ForkStateReader {
6666
}
6767
}
6868

69-
#[allow(clippy::needless_pass_by_value)]
69+
#[expect(clippy::needless_pass_by_value)]
7070
fn other_provider_error<T>(boxed: impl ToString) -> Result<T, StateError> {
7171
let err_str = boxed.to_string();
7272

crates/cheatnet/src/runtime_extensions/call_to_blockifier_runtime_extension/execution/calls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub fn execute_inner_call(
5757
}
5858

5959
// blockifier/src/execution/syscalls/hint_processor.rs:577 (execute_library_call)
60-
#[allow(clippy::too_many_arguments)]
60+
#[expect(clippy::too_many_arguments)]
6161
pub fn execute_library_call(
6262
syscall_handler: &mut SyscallHintProcessor<'_>,
6363
cheatnet_state: &mut CheatnetState,

crates/cheatnet/src/runtime_extensions/call_to_blockifier_runtime_extension/execution/cheated_syscalls.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ use super::calls::{execute_inner_call, execute_library_call};
3838
use super::execution_info::get_cheated_exec_info_ptr;
3939
pub type SyscallSelector = DeprecatedSyscallSelector;
4040

41-
#[allow(clippy::needless_pass_by_value)]
4241
pub fn get_execution_info_syscall(
4342
_request: EmptyRequest,
4443
vm: &mut VirtualMachine,

crates/cheatnet/src/runtime_extensions/call_to_blockifier_runtime_extension/execution/entry_point.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub(crate) type ContractClassEntryPointExecutionResult = Result<
4040
>;
4141

4242
// blockifier/src/execution/entry_point.rs:180 (CallEntryPoint::execute)
43-
#[allow(clippy::too_many_lines)]
43+
#[expect(clippy::too_many_lines)]
4444
pub fn execute_call_entry_point(
4545
entry_point: &mut CallEntryPoint, // Instead of 'self'
4646
state: &mut dyn State,

crates/cheatnet/src/runtime_extensions/deprecated_cheatable_starknet_extension/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ fn execute_inner_call(
396396
}
397397

398398
// blockifier/src/execution/deprecated_syscalls/hint_processor.rs:409 (execute_library_call)
399-
#[allow(clippy::too_many_arguments)]
399+
#[expect(clippy::too_many_arguments)]
400400
fn execute_library_call(
401401
syscall_handler: &mut DeprecatedSyscallHintProcessor<'_>,
402402
cheatnet_state: &mut CheatnetState,

crates/cheatnet/src/runtime_extensions/deprecated_cheatable_starknet_extension/runtime.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ impl<Extension: DeprecatedExtensionLogic> HintProcessorLogic
134134
}
135135

136136
impl<Extension: DeprecatedExtensionLogic> DeprecatedExtendedRuntime<Extension> {
137-
#[allow(clippy::too_many_arguments)]
138137
fn execute_syscall_hint(
139138
&mut self,
140139
vm: &mut VirtualMachine,

crates/cheatnet/src/runtime_extensions/forge_config_extension.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ pub struct ForgeConfigExtension<'a> {
1212
impl<'a> ExtensionLogic for ForgeConfigExtension<'a> {
1313
type Runtime = StarknetRuntime<'a>;
1414

15-
#[allow(clippy::too_many_lines)]
1615
fn handle_cheatcode(
1716
&mut self,
1817
selector: &str,

crates/cheatnet/src/runtime_extensions/forge_runtime_extension/cheatcodes/declare.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ pub enum DeclareResult {
1818
AlreadyDeclared(ClassHash),
1919
}
2020

21-
#[allow(clippy::implicit_hasher)]
2221
pub fn declare(
2322
state: &mut dyn State,
2423
contract_name: &str,

crates/cheatnet/src/runtime_extensions/forge_runtime_extension/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub struct ForgeExtension<'a> {
6868
impl<'a> ExtensionLogic for ForgeExtension<'a> {
6969
type Runtime = CallToBlockifierRuntime<'a>;
7070

71-
#[allow(clippy::too_many_lines)]
71+
#[expect(clippy::too_many_lines)]
7272
fn handle_cheatcode(
7373
&mut self,
7474
selector: &str,

0 commit comments

Comments
 (0)