Skip to content

Commit

Permalink
remove usage of String within tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nils-mathieu committed Nov 7, 2023
1 parent 6846446 commit 997b609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/starknet-types-rpc/src/custom_serde/num_as_hex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ struct Helper {
}

#[cfg(test)]
fn serialize(num: u64) -> serde_json::Result<String> {
fn serialize(num: u64) -> serde_json::Result<alloc::string::String> {
let helper = Helper { num };
serde_json::to_string(&helper)
}
Expand Down

0 comments on commit 997b609

Please sign in to comment.