Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
pause125 committed Jul 7, 2024
1 parent 6fcc35c commit d181928
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions crates/rooch-rpc-api/src/jsonrpc_types/module_abi_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ use move_binary_format::{
Visibility,
},
};
use move_core_types::{
account_address::AccountAddress,
identifier::Identifier,
language_storage::{StructTag, TypeTag},
};
use move_core_types::{account_address::AccountAddress, identifier::Identifier};
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use std::fmt::{self, Debug};
Expand Down Expand Up @@ -84,7 +80,7 @@ impl std::fmt::Display for MoveABITypeView {
impl FromStr for MoveABITypeView {
type Err = anyhow::Error;

fn from_str(s: &str) -> Result<Self, Self::Err> {
fn from_str(_s: &str) -> Result<Self, Self::Err> {
// TODO
unimplemented!("No scenario for deserializing MoveABITypeView")
}
Expand Down Expand Up @@ -141,7 +137,7 @@ impl std::fmt::Display for MoveABIStructTagView {
impl FromStr for MoveABIStructTagView {
type Err = anyhow::Error;

fn from_str(s: &str) -> Result<Self, Self::Err> {
fn from_str(_s: &str) -> Result<Self, Self::Err> {
// TODO
unimplemented!("No scenario for deserializing MoveABIStructTagView")
}
Expand Down Expand Up @@ -180,10 +176,10 @@ fn signature_token_to_abi_type(m: &CompiledModule, token: &SignatureToken) -> Mo
MoveABIType::Vector(Box::new(signature_token_to_abi_type(m, t.borrow())))
}
SignatureToken::Struct(v) => {
MoveABIType::Struct(Box::new(signature_token_to_abi_struct_tag(&m, v, &[])))
MoveABIType::Struct(Box::new(signature_token_to_abi_struct_tag(m, v, &[])))
}
SignatureToken::StructInstantiation(shi, type_params) => MoveABIType::Struct(Box::new(
signature_token_to_abi_struct_tag(&m, shi, type_params),
signature_token_to_abi_struct_tag(m, shi, type_params),
)),
SignatureToken::TypeParameter(i) => MoveABIType::GenericTypeParam { index: *i },
SignatureToken::Reference(t) => MoveABIType::Reference {
Expand Down Expand Up @@ -369,7 +365,7 @@ impl From<CompiledModule> for ModuleABIView {
friends: m
.immediate_friends()
.into_iter()
.map(|m| ModuleIdView::from(m))
.map(ModuleIdView::from)
.collect(),
functions: m
.function_defs
Expand Down

0 comments on commit d181928

Please sign in to comment.