From 4412e07fa6933614ce6a0a4c179043fcea0ddd44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com> Date: Sat, 10 Aug 2024 17:06:36 +0100 Subject: [PATCH] chore: rename state trait method --- src/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state.rs b/src/state.rs index 00679ecc..fc970531 100644 --- a/src/state.rs +++ b/src/state.rs @@ -60,7 +60,7 @@ pub const BESS_MAGIC: u32 = 0x53534542; /// this trait to allow the state to be saved and restored /// in a consistent way. pub trait StateComponent { - fn get_state(&self) -> Result<Vec<u8>, Error>; + fn state(&self) -> Result<Vec<u8>, Error>; fn set_state(&mut self, data: &[u8]) -> Result<(), Error>; } -- GitLab