mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 08:47:57 +00:00
Encryption support for the statement store (#14440)
* Added ECIES encryption * tweaks * fmt * Make clippy happy * Use local keystore * qed
This commit is contained in:
@@ -166,11 +166,11 @@ fn ensure_valid_return_type(item_fn: &ItemFn) -> Result<()> {
|
||||
if let ReturnType::Type(_, typ) = &item_fn.sig.output {
|
||||
let non_unit = |span| return Err(Error::new(span, "expected `()`"));
|
||||
let Type::Path(TypePath { path, qself: _ }) = &**typ else {
|
||||
return Err(Error::new(
|
||||
return Err(Error::new(
|
||||
typ.span(),
|
||||
"Only `Result<(), BenchmarkError>` or a blank return type is allowed on benchmark function definitions",
|
||||
))
|
||||
};
|
||||
};
|
||||
let seg = path
|
||||
.segments
|
||||
.last()
|
||||
@@ -780,7 +780,7 @@ fn expand_benchmark(
|
||||
let call_name = match *expr_call.func {
|
||||
Expr::Path(expr_path) => {
|
||||
// normal function call
|
||||
let Some(segment) = expr_path.path.segments.last() else { return call_err(); };
|
||||
let Some(segment) = expr_path.path.segments.last() else { return call_err() };
|
||||
segment.ident.to_string()
|
||||
},
|
||||
Expr::Infer(_) => {
|
||||
|
||||
@@ -100,9 +100,7 @@ pub fn expand_outer_enum(
|
||||
let enum_name_ident = Ident::new(enum_ty.struct_name(), Span::call_site());
|
||||
|
||||
for pallet_decl in pallet_decls {
|
||||
let Some(pallet_entry) = pallet_decl.find_part(enum_name_str) else {
|
||||
continue
|
||||
};
|
||||
let Some(pallet_entry) = pallet_decl.find_part(enum_name_str) else { continue };
|
||||
|
||||
let path = &pallet_decl.path;
|
||||
let pallet_name = &pallet_decl.name;
|
||||
|
||||
Reference in New Issue
Block a user