Skip to content

Commit

Permalink
fix clippy ident : this creates an owned instance just for comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyProgrammist committed May 30, 2024
1 parent 43ac3ef commit a49df2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion near-sdk-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pub fn contract_error(attr: TokenStream, item: TokenStream) -> TokenStream {
}
}
};
if ident.to_string() != "BaseError" {
if *ident != "BaseError" {
expanded.extend(quote! {
impl From<#ident> for #near_sdk_crate ::BaseError {
fn from(err: #ident) -> Self {
Expand Down

0 comments on commit a49df2d

Please sign in to comment.