Skip to content

Commit 986f833

Browse files
committed
lint
1 parent 35cecec commit 986f833

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

src/get_array.nr

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,7 @@ impl<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let Max
6969
/**
7070
* @brief same as `get_array` for where the key length may be less than KeyBytes
7171
**/
72-
pub fn get_array_var<let KeyBytes: u32>(
73-
self,
74-
key: BoundedVec<u8, KeyBytes>,
75-
) -> Option<Self> {
72+
pub fn get_array_var<let KeyBytes: u32>(self, key: BoundedVec<u8, KeyBytes>) -> Option<Self> {
7673
assert(self.layer_type_of_root != ARRAY_LAYER, "cannot extract array elements via a key");
7774
let (exists, key_index) = self.key_exists_impl_var(key);
7875
let entry: JSONEntry = self.json_entries_packed[key_index].into();
@@ -101,10 +98,7 @@ impl<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let Max
10198
/**
10299
* @brief same as `get_array_unchecked` for where the key length may be less than KeyBytes
103100
**/
104-
pub fn get_array_unchecked_var<let KeyBytes: u32>(
105-
self,
106-
key: BoundedVec<u8, KeyBytes>,
107-
) -> Self {
101+
pub fn get_array_unchecked_var<let KeyBytes: u32>(self, key: BoundedVec<u8, KeyBytes>) -> Self {
108102
assert(self.layer_type_of_root != ARRAY_LAYER, "cannot extract array elements via a key");
109103

110104
let (entry, key_index) = self.get_json_entry_unchecked_with_key_index_var(key);

src/get_object.nr

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,7 @@ impl<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let Max
6060
/**
6161
* @brief same as `get_object` for where the key length may be less than KeyBytes
6262
**/
63-
pub fn get_object_var<let KeyBytes: u32>(
64-
self,
65-
key: BoundedVec<u8, KeyBytes>,
66-
) -> Option<Self> {
63+
pub fn get_object_var<let KeyBytes: u32>(self, key: BoundedVec<u8, KeyBytes>) -> Option<Self> {
6764
assert(self.layer_type_of_root != ARRAY_LAYER, "cannot extract array elements via a key");
6865

6966
let (exists, key_index) = self.key_exists_impl_var(key);

0 commit comments

Comments
 (0)