Skip to content

Commit

Permalink
Merge pull request #34 from Seldom-SE/postcard_saver_loader
Browse files Browse the repository at this point in the history
Add `PostcardAssetLoader` as `OutputLoader` to `PostcardAssetSaver`
  • Loading branch information
NiklasEi committed Apr 6, 2024
2 parents 9bd9d16 + 1091926 commit ef3d881
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/postcard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ impl<A> Default for PostcardAssetSaver<A> {
}
}

impl<A: Asset + Serialize> AssetSaver for PostcardAssetSaver<A> {
impl<A: Asset + for<'de> Deserialize<'de> + Serialize> AssetSaver for PostcardAssetSaver<A> {
type Asset = A;
type Settings = ();
type OutputLoader = ();
type OutputLoader = PostcardAssetLoader<A>;
type Error = PostcardAssetError;

fn save<'a>(
Expand Down

0 comments on commit ef3d881

Please sign in to comment.