Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Serial-ATA committed Dec 10, 2024
1 parent 0ebddbf commit 97d924e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions cli/src/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ pub use alloy_signer_local::PrivateKeySigner;
use color_eyre::eyre::{self, Context, ContextCompat, Result};
use gadget_blueprint_proc_macro_core::{BlueprintManager, ServiceBlueprint};
use gadget_sdk::clients::tangle::runtime::TangleConfig;
#[cfg(test)]
use gadget_sdk::tx::tangle::TxProgressExt;
pub use k256;
use std::fmt::Debug;
use std::path::PathBuf;
Expand Down
8 changes: 3 additions & 5 deletions macros/blueprint-proc-macro/src/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,10 @@ pub fn get_return_type_wrapper(
} else {
quote! { Ok((#context_var_name, res)) }
}
} else if return_type.is_result_type() {
quote! { res.map_err(|err| gadget_sdk::Error::Other(err.to_string())) }
} else {
if return_type.is_result_type() {
quote! { res.map_err(|err| gadget_sdk::Error::Other(err.to_string())) }
} else {
quote! { Ok(res) }
}
quote! { Ok(res) }
}
}

Expand Down

0 comments on commit 97d924e

Please sign in to comment.