Skip to content

Commit

Permalink
Replace alloc::fmt with core::fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
survived committed Mar 25, 2024
1 parent 957ee49 commit 98b179e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions generic-ec/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v0.2.3
* Add `generic_ec::serde::PreferCompact` that serializes points/scalars in compact form,
but deserialization recognizes both compact and non-compact formats [#28]

[#28]: https://github.com/dfns/generic-ec/pull/28

## v0.2.2
* Implement `serde_with::SerializeAs<&T>` for `generic_ec::serde::Compact` when `T` is
serializable via `Compact` [#27]
Expand Down
2 changes: 1 addition & 1 deletion generic-ec/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "generic-ec"
version = "0.2.2"
version = "0.2.3"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/dfns/generic-ec"
Expand Down
2 changes: 1 addition & 1 deletion generic-ec/src/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ mod optional {
Compact: serde_with::DeserializeAs<'de, T>,
{
type Value = T;
fn expecting(&self, f: &mut alloc::fmt::Formatter) -> alloc::fmt::Result {
fn expecting(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.write_str("preferably compact point/scalar")
}

Expand Down

0 comments on commit 98b179e

Please sign in to comment.