File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 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
4242 RUSTFLAGS=" --cfg=c_bindings" cargo test --verbose --color always --no-default-features --features=no-std
4343 popd
4444done
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
4550
4651echo -e " \n\nTesting no-std build on a downstream no-std crate"
4752# 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 {
16481648 fn deserialize < D > ( deserializer : D ) -> Result < Invoice , D :: Error > where D : Deserializer < ' de > {
16491649 let bolt11 = String :: deserialize ( deserializer) ?
16501650 . parse :: < Invoice > ( )
1651- . map_err ( |e| D :: Error :: custom ( format ! ( "{:?}" , e) ) ) ?;
1651+ . map_err ( |e| D :: Error :: custom ( alloc :: format!( "{:?}" , e) ) ) ?;
16521652
16531653 Ok ( bolt11)
16541654 }
You can’t perform that action at this time.
0 commit comments