mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 16:17:59 +00:00
Update to 2024 edition (#2001)
* Update to 2024 edition * Update to 2024 edition; fmt, use<> and remove refs * async functions
This commit is contained in:
+5
-3
@@ -20,8 +20,8 @@ use api::RuntimeGenerator;
|
||||
use proc_macro2::TokenStream as TokenStream2;
|
||||
use scale_typegen::typegen::settings::AllocCratePath;
|
||||
use scale_typegen::{
|
||||
typegen::settings::substitutes::absolute_path, DerivesRegistry, TypeGeneratorSettings,
|
||||
TypeSubstitutes, TypegenError,
|
||||
DerivesRegistry, TypeGeneratorSettings, TypeSubstitutes, TypegenError,
|
||||
typegen::settings::substitutes::absolute_path,
|
||||
};
|
||||
use std::collections::HashMap;
|
||||
use syn::parse_quote;
|
||||
@@ -225,7 +225,9 @@ impl CodegenBuilder {
|
||||
if absolute_path(crate_path.clone()).is_err() {
|
||||
// Throw an error here, because otherwise we end up with a harder to comprehend error when
|
||||
// substitute types don't begin with an absolute path.
|
||||
panic!("The provided crate path must be an absolute path, ie prefixed with '::' or 'crate'");
|
||||
panic!(
|
||||
"The provided crate path must be an absolute path, ie prefixed with '::' or 'crate'"
|
||||
);
|
||||
}
|
||||
self.crate_path = crate_path;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user