Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoletta committed Oct 9, 2023
1 parent d8a99c8 commit c8f96b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cairo1-run/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ fn run(args: impl Iterator<Item = String>) -> Result<Vec<MaybeRelocatable>, Erro

// Fetch return type data
let return_type_id = main_func.signature.ret_types.last().unwrap();
let return_type_size = type_sizes.get(&return_type_id).cloned().unwrap_or_default();
let return_type_size = type_sizes.get(return_type_id).cloned().unwrap_or_default();

let mut return_values = vm.get_return_values(return_type_size as usize)?;
// Check if this result is a Panic result
Expand Down Expand Up @@ -321,7 +321,7 @@ fn main() -> Result<(), Error> {
// Try to parse to utf8 string
let msg = String::from_utf8(m.to_be_bytes().to_vec());
if let Ok(msg) = msg {
format!("{} ('{}')", m.to_string(), msg)
format!("{} ('{}')", m, msg)

Check warning on line 324 in cairo1-run/src/main.rs

View check run for this annotation

Codecov / codecov/patch

cairo1-run/src/main.rs#L316-L324

Added lines #L316 - L324 were not covered by tests
} else {
m.to_string()

Check warning on line 326 in cairo1-run/src/main.rs

View check run for this annotation

Codecov / codecov/patch

cairo1-run/src/main.rs#L326

Added line #L326 was not covered by tests
}
Expand Down

0 comments on commit c8f96b2

Please sign in to comment.