mirror of
https://github.com/eigenein/wotbreplay-parser.git
synced 2026-10-21 02:17:02 +02:00
Break: rename parse into from_buffer
This commit is contained in:
1 parent
04420da334
commit
e853224017
1 file changed
+1
-1
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user