mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 03:41:02 +00:00
remove alloc::format! again, still causes linker errors
This commit is contained in:
@@ -8,7 +8,7 @@ use alloc::borrow::ToOwned;
|
|||||||
use alloc::string::String;
|
use alloc::string::String;
|
||||||
use alloc::vec;
|
use alloc::vec;
|
||||||
use alloc::vec::Vec;
|
use alloc::vec::Vec;
|
||||||
|
use core::fmt::Write;
|
||||||
use frame_metadata::{v14, v15};
|
use frame_metadata::{v14, v15};
|
||||||
use hashbrown::HashMap;
|
use hashbrown::HashMap;
|
||||||
use scale_info::TypeDef;
|
use scale_info::TypeDef;
|
||||||
@@ -372,11 +372,10 @@ fn generate_outer_error_enum_type(
|
|||||||
return None;
|
return None;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Note: using the `format!` macro like in `let path = format!("{}Error", pallet.name);`
|
// Note: using the `alloc::format!` macro like in `let path = format!("{}Error", pallet.name);`
|
||||||
// leads to linker errors about extern function `_Unwind_Resume` not being defined.
|
// leads to linker errors about extern function `_Unwind_Resume` not being defined.
|
||||||
// let mut path = String::new();
|
let mut path = String::new();
|
||||||
// write!(path, "{}Error", pallet.name).expect("Cannot panic, qed;");
|
write!(path, "{}Error", pallet.name).expect("Cannot panic, qed;");
|
||||||
let path = alloc::format!("{}Error", pallet.name);
|
|
||||||
let ty = error.ty.id.into();
|
let ty = error.ty.id.into();
|
||||||
|
|
||||||
Some(scale_info::Variant {
|
Some(scale_info::Variant {
|
||||||
|
|||||||
Reference in New Issue
Block a user