Skip to content

Commit

Permalink
Pass formatting and clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
artemagvanian committed Jun 12, 2024
1 parent ab8a4a2 commit 87b55f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ impl TypeLayout {
size: match ty.layout().unwrap().shape().fields {
FieldsShape::Array { stride, count } if count == 0 => stride,
_ => {
return Err(format!("Unsupported DST for invalid memory check: `{ty}`"));
return Err(format!(
"Unsupported DST for invalid memory check: `{ty}`"
));
}
},
};
Expand Down
2 changes: 1 addition & 1 deletion library/kani/src/shadow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ pub fn global_sm_get<const N: usize>(ptr: *const (), layout: [bool; N], n: usize
}
count += 1;
}
return true;
true
}

// Set initialization setate to `value` for `n` items laid out according to the `layout` starting at address `ptr`.
Expand Down

0 comments on commit 87b55f1

Please sign in to comment.