Skip to content

Commit 4052c50

Browse files
authored
chore: make nightly clippy happy (#693)
1 parent 5f6e173 commit 4052c50

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
- name: "Set allowed lints"
8282
run: |
8383
if [ "${{ matrix.toolchain }}" == "nightly" ]; then
84-
echo "ALLOWED=-A non_local_definitions -A clippy::too_long_first_doc_paragraph -A clippy::needless_return" >> $GITHUB_ENV
84+
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
8585
else
8686
echo "ALLOWED=" >> $GITHUB_ENV
8787
fi

starknet-core/src/types/typed_data/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ impl TypedData {
570570
where
571571
H: TypedDataHasher,
572572
{
573-
let mut new_layer = Vec::with_capacity((layer.len() + 1) / 2);
573+
let mut new_layer = Vec::with_capacity(layer.len().div_ceil(2));
574574
for chunk in layer.chunks(2) {
575575
new_layer.push(if chunk.len() == 2 {
576576
if chunk[0] <= chunk[1] {

0 commit comments

Comments
 (0)