Skip to content

Commit

Permalink
chore: make nightly clippy happy (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
xJonathanLEI authored Feb 3, 2025
1 parent 5f6e173 commit 4052c50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
- name: "Set allowed lints"
run: |
if [ "${{ matrix.toolchain }}" == "nightly" ]; then
echo "ALLOWED=-A non_local_definitions -A clippy::too_long_first_doc_paragraph -A clippy::needless_return" >> $GITHUB_ENV
echo "ALLOWED=-A non_local_definitions -A clippy::too_long_first_doc_paragraph -A clippy::needless_return -A clippy::missing_const_for_fn" >> $GITHUB_ENV
else
echo "ALLOWED=" >> $GITHUB_ENV
fi
Expand Down
2 changes: 1 addition & 1 deletion starknet-core/src/types/typed_data/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ impl TypedData {
where
H: TypedDataHasher,
{
let mut new_layer = Vec::with_capacity((layer.len() + 1) / 2);
let mut new_layer = Vec::with_capacity(layer.len().div_ceil(2));
for chunk in layer.chunks(2) {
new_layer.push(if chunk.len() == 2 {
if chunk[0] <= chunk[1] {
Expand Down

0 comments on commit 4052c50

Please sign in to comment.