Skip to content

Commit

Permalink
fix: small corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
nenikitov committed Jan 24, 2024
1 parent 62cd747 commit 579d659
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engine/src/asset/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ where
{
/// The final value that would be returned by [`parser`].
///
/// _Most_ of the time this would be equal to `Self`. See [`Self::Output`]
/// _Most_ of the time this would be equal to `Self`.
///
/// A hypothetical `TextureCollection` would return `Vec<Texture>` as its output.
///
Expand Down
5 changes: 4 additions & 1 deletion engine/src/asset/model/dat/sequence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ pub struct ModelSequence {
impl AssetParser<Wildcard> for ModelSequence {
type Output = Self;

type Context<'ctx> = &'ctx [u8];
// TODO(nenikitov): Maybe refactor it to not accept full input.
// In other asset parts, it's parent's responsability to cut input into slices
// for asset parts to parse.
type Context<'ctx> = Input<'ctx>;

fn parser(full_input: Self::Context<'_>) -> impl Fn(Input) -> Result<Self::Output> {
move |input| {
Expand Down

0 comments on commit 579d659

Please sign in to comment.