Skip to content

Commit

Permalink
Fix typo, add to troubleshooting guide
Browse files Browse the repository at this point in the history
  • Loading branch information
avl committed May 1, 2024
1 parent d7ba722 commit 1001a10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,9 @@ Common errors:
## "the trait bound `MyStuff: WithSchema` is not satisfied"
This probably means you've forgotten to derive the Savefile-traits. Add a `#[derive(Savefile)]`.

## the trait `ReprC` is not implemented

This one is easy. `ReprC` has been renamed to `Packed`. Just change to `Packed` and things should work.

# License

Expand Down
4 changes: 2 additions & 2 deletions savefile/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1239,10 +1239,10 @@ pub trait Packed {
}
}

#[deprecated(since="0.17", note="The 'Packed' trait has been renamed to 'Packed'.")]
#[deprecated(since="0.17", note="The 'ReprC' trait has been renamed to 'Packed'.")]
#[doc(hidden)]
pub trait ReprC {
#[deprecated(since="0.17", note="The 'Packed' trait has been renamed to 'Packed'.")]
#[deprecated(since="0.17", note="The 'ReprC' trait has been renamed to 'Packed'.")]
#[doc(hidden)]
unsafe fn repr_c_optimization_safe(_version: u32) -> IsPacked {
IsPacked::no()
Expand Down

0 comments on commit 1001a10

Please sign in to comment.