Skip to content

Commit

Permalink
Remove unnecessary casts in Rust (#1208)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirugan authored Sep 8, 2023
1 parent 6a92a9f commit 4d80433
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vm/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ pub extern "C" fn cairoVMExecute(
let contract_class = match sn_api_txn.clone() {
StarknetApiTransaction::Declare(declare) => {
if classes.is_empty() {
report_error(reader_handle, "missing declared class".to_string().as_str());
report_error(reader_handle, "missing declared class");
return;
}
let class_json_str = classes.remove(0);
Expand All @@ -206,7 +206,7 @@ pub extern "C" fn cairoVMExecute(
if paid_fees_on_l1.is_empty() {
report_error(
reader_handle,
"missing fee paid on l1b".to_string().as_str(),
"missing fee paid on l1b",
);
return;
}
Expand Down

0 comments on commit 4d80433

Please sign in to comment.