File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ fn main() -> anyhow::Result<()> {
5353 }
5454
5555 let contract_files = fs:: read_dir ( & target_dir)
56- . with_context ( || format ! ( "failed to read directory: {}" , target_dir. display ( ) ) ) ?
56+ . with_context ( || format ! ( "failed to read directory: {}" , target_dir) ) ?
5757 . filter_map ( Result :: ok)
5858 . filter ( |entry| entry. file_type ( ) . map ( |ft| ft. is_file ( ) ) . unwrap_or ( false ) )
5959 . filter_map ( |entry| {
@@ -71,9 +71,9 @@ fn main() -> anyhow::Result<()> {
7171 for contract_file_path in contract_files {
7272 let sierra_contract_class: cairo_lang_starknet_classes:: contract_class:: ContractClass = serde_json:: from_str (
7373 & fs:: read_to_string ( & contract_file_path)
74- . with_context ( || format ! ( "failed to read file: {}" , contract_file_path. display ( ) ) ) ?,
74+ . with_context ( || format ! ( "failed to read file: {}" , contract_file_path) ) ?,
7575 )
76- . with_context ( || format ! ( "failed to deserialize compiled file: {}" , contract_file_path. display ( ) ) ) ?;
76+ . with_context ( || format ! ( "failed to deserialize compiled file: {}" , contract_file_path) ) ?;
7777
7878 let sierra_program = sierra_contract_class. extract_sierra_program ( ) ?;
7979
You can’t perform that action at this time.
0 commit comments