File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,11 @@ for DIR in lightning lightning-invoice lightning-rapid-gossip-sync; do
42
42
RUSTFLAGS=" --cfg=c_bindings" cargo test --verbose --color always --no-default-features --features=no-std
43
43
popd
44
44
done
45
+ # This one only works for lightning-invoice
46
+ pushd lightning-invoice
47
+ # check that compile with no-std and serde works in lightning-invoice
48
+ cargo test --verbose --color always --no-default-features --features no-std --features serde
49
+ popd
45
50
46
51
echo -e " \n\nTesting no-std build on a downstream no-std crate"
47
52
# check no-std compatibility across dependencies
Original file line number Diff line number Diff line change @@ -1648,7 +1648,7 @@ impl<'de> Deserialize<'de> for Invoice {
1648
1648
fn deserialize < D > ( deserializer : D ) -> Result < Invoice , D :: Error > where D : Deserializer < ' de > {
1649
1649
let bolt11 = String :: deserialize ( deserializer) ?
1650
1650
. parse :: < Invoice > ( )
1651
- . map_err ( |e| D :: Error :: custom ( format ! ( "{:?}" , e) ) ) ?;
1651
+ . map_err ( |e| D :: Error :: custom ( alloc :: format!( "{:?}" , e) ) ) ?;
1652
1652
1653
1653
Ok ( bolt11)
1654
1654
}
You can’t perform that action at this time.
0 commit comments