Skip to content

Commit

Permalink
Fix lint with cargo xclippy (#20001)
Browse files Browse the repository at this point in the history
## Description 

`cargo xclippy` has `--all-features` enabled. Seeing these warnings:

```
warning: unused import: `move_vm_profiler::GasProfiler`
  --> external-crates/move/move-execution/v2/crates/move-vm-runtime/src/interpreter.rs:23:5
   |
23 | use move_vm_profiler::GasProfiler;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: unused import: `move_vm_profiler::GasProfiler`
  --> external-crates/move/move-execution/v1/crates/move-vm-runtime/src/interpreter.rs:23:5
   |
23 | use move_vm_profiler::GasProfiler;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: unused import: `move_vm_profiler::GasProfiler`
  --> external-crates/move/move-execution/v0/crates/move-vm-runtime/src/interpreter.rs:24:5
   |
24 | use move_vm_profiler::GasProfiler;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default
```

## Test plan 

CI

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
  • Loading branch information
mwtian authored Oct 29, 2024
1 parent 68ac44a commit 77662a6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ use move_core_types::{
vm_status::{StatusCode, StatusType},
};
use move_vm_config::runtime::VMRuntimeLimitsConfig;
#[cfg(feature = "gas-profiler")]
use move_vm_profiler::GasProfiler;
use move_vm_profiler::{
profile_close_frame, profile_close_instr, profile_open_frame, profile_open_instr,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ use move_core_types::{
vm_status::{StatusCode, StatusType},
};
use move_vm_config::runtime::VMRuntimeLimitsConfig;
#[cfg(feature = "gas-profiler")]
use move_vm_profiler::GasProfiler;
use move_vm_profiler::{
profile_close_frame, profile_close_instr, profile_open_frame, profile_open_instr,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ use move_core_types::{
vm_status::{StatusCode, StatusType},
};
use move_vm_config::runtime::VMRuntimeLimitsConfig;
#[cfg(feature = "gas-profiler")]
use move_vm_profiler::GasProfiler;
use move_vm_profiler::{
profile_close_frame, profile_close_instr, profile_open_frame, profile_open_instr,
};
Expand Down

0 comments on commit 77662a6

Please sign in to comment.