From 4d804331a8368486e1dcce554257060c56e67506 Mon Sep 17 00:00:00 2001 From: Kirill Date: Fri, 8 Sep 2023 15:58:17 +0400 Subject: [PATCH] Remove unnecessary casts in Rust (#1208) --- vm/rust/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm/rust/src/lib.rs b/vm/rust/src/lib.rs index bdf0ef349f..e4053766fa 100644 --- a/vm/rust/src/lib.rs +++ b/vm/rust/src/lib.rs @@ -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); @@ -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; }