Skip to content

Commit

Permalink
Fix dead_code lint
Browse files Browse the repository at this point in the history
  • Loading branch information
slowli committed Sep 2, 2024
1 parent 8fdf976 commit 73ba6e7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions eravm-stable-interface/src/tracer_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,19 @@ macro_rules! pub_struct {
}

pub mod opcodes {
use super::{CallingMode, ReturnType};
use std::marker::PhantomData;

forall_simple_opcodes!(pub_struct);
pub struct FarCall<M: TypeLevelCallingMode>(M);
pub struct Ret<T: TypeLevelReturnType>(T);
pub struct FarCall<M: TypeLevelCallingMode>(PhantomData<M>);
pub struct Ret<T: TypeLevelReturnType>(PhantomData<T>);

pub struct Normal;
pub struct Delegate;
pub struct Mimic;
pub struct Revert;
pub struct Panic;

use super::{CallingMode, ReturnType};

pub trait TypeLevelCallingMode {
const VALUE: CallingMode;
}
Expand Down

0 comments on commit 73ba6e7

Please sign in to comment.