Skip to content

Commit d53a80e

Browse files
committed
fix(no_std): replace std::string with alloc::string for compatibility
1 parent 875b5e9 commit d53a80e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

crates/chain/src/indexer/keychain_txout.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use crate::{
1010
spk_txout::SpkTxOutIndex,
1111
DescriptorExt, DescriptorId, Indexed, Indexer, KeychainIndexed, SpkIterator,
1212
};
13-
use alloc::{borrow::ToOwned, vec::Vec};
13+
use alloc::{borrow::ToOwned, vec::Vec, string::ToString, string::String};
1414
use bitcoin::{
1515
key::Secp256k1, Amount, OutPoint, Script, ScriptBuf, SignedAmount, Transaction, TxOut, Txid,
1616
};
@@ -978,8 +978,8 @@ pub enum InsertDescriptorError<K> {
978978
fn short_descriptor(
979979
desc: &Descriptor<DescriptorPublicKey>,
980980
edge_len: usize,
981-
) -> std::string::String {
982-
let s = std::string::ToString::to_string(desc);
981+
) -> String {
982+
let s = ToString::to_string(desc);
983983
if s.len() <= edge_len * 2 {
984984
return s;
985985
}

0 commit comments

Comments
 (0)