Skip to content

Commit

Permalink
Shift str impl from the std to alloc feature (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch authored Nov 7, 2023
1 parent c7c46d1 commit 957273d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ serde_json = "1.0.89"

[features]
default = ["std", "curr"]
std = ["alloc", "dep:stellar-strkey"]
alloc = ["dep:hex"]
std = ["alloc"]
alloc = ["dep:hex", "dep:stellar-strkey"]
curr = []
next = []

Expand Down
4 changes: 2 additions & 2 deletions src/curr/str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//# - SignerKey
//# - SignerKeyEd25519SignedPayload
//# - NodeId
#![cfg(feature = "std")]
#![cfg(feature = "alloc")]

use super::{
AccountId, Error, Hash, MuxedAccount, MuxedAccountMed25519, NodeId, PublicKey, ScAddress,
Expand All @@ -31,7 +31,7 @@ impl core::fmt::Display for PublicKey {
match self {
PublicKey::PublicKeyTypeEd25519(Uint256(k)) => {
let k = stellar_strkey::ed25519::PublicKey::from_payload(k)
.map_err(|_| std::fmt::Error)?;
.map_err(|_| core::fmt::Error)?;
let s = k.to_string();
f.write_str(&s)?;
}
Expand Down

0 comments on commit 957273d

Please sign in to comment.