From 62b11bf8e933168393dc527ff99911dcadc54093 Mon Sep 17 00:00:00 2001 From: dd di cesare Date: Mon, 2 Sep 2024 10:49:52 +0200 Subject: [PATCH] [tmp] Allowing dead code Signed-off-by: dd di cesare --- src/action_dispatcher.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/action_dispatcher.rs b/src/action_dispatcher.rs index 849a194..de731e5 100644 --- a/src/action_dispatcher.rs +++ b/src/action_dispatcher.rs @@ -1,6 +1,7 @@ use proxy_wasm::types::Status; use std::cell::RefCell; +#[allow(dead_code)] #[derive(PartialEq, Debug, Clone)] pub(crate) enum State { Pending, @@ -8,6 +9,7 @@ pub(crate) enum State { Done, } +#[allow(dead_code)] impl State { fn next(&mut self) { match self { @@ -17,6 +19,8 @@ impl State { } } } + +#[allow(dead_code)] #[derive(Clone)] pub(crate) struct Action { state: State, @@ -24,6 +28,7 @@ pub(crate) struct Action { operation: Option Result>, } +#[allow(dead_code)] impl Action { pub fn default() -> Self { Self { @@ -54,10 +59,12 @@ impl Action { } } +#[allow(dead_code)] pub struct ActionDispatcher { actions: RefCell>, } +#[allow(dead_code)] impl ActionDispatcher { pub fn default() -> ActionDispatcher { ActionDispatcher {