Break: rename parse into from_buffer

This commit is contained in:
eigenein committed 2023-04-16 23:09:05 +02:00
1 parent 04420da334
commit e853224017
1 file changed
+1 -1
+1 -1
View File
@@ -9,7 +9,7 @@ impl BattleResults {
/// Parse battle results from the buffer. /// Parse battle results from the buffer.
/// ///
/// Note, that this does NOT parse `battle_results.dat` itself, but the un-pickled tuple element. /// Note, that this does NOT parse `battle_results.dat` itself, but the un-pickled tuple element.
pub fn parse(buffer: impl Buf) -> Result<Self> { pub fn from_buffer(buffer: impl Buf) -> Result<Self> {
Self::decode(buffer).map_err(Error::DecodeFailed) Self::decode(buffer).map_err(Error::DecodeFailed)
} }
} }