diff --git a/src/state.rs b/src/state.rs index 00679eccb5bd1a0cc370a9952f1ec2b922e968cf..fc970531cb42825cd1d6ac96f3a9b6b588504e49 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>; }