Skip to content

Commit 5cb2b53

Browse files
committed
lint
1 parent c51ca3a commit 5cb2b53

File tree

2 files changed

+12
-21
lines changed

2 files changed

+12
-21
lines changed

src/_string_tools/slice_packed_field.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ mod test {
883883
for j in 0..18 {
884884
let start_byte: u32 = text.len() - num_bytes - byte_positions[j];
885885
let mut expected_slices: [Field; 3] =
886-
// Safety: this is a test
886+
// Safety: this is a test
887887
unsafe { build_slices_for_test(text, start_byte, num_bytes) };
888888
let result_slices: [Field; 3] =
889889
slice_fields(slices, start_byte as Field, num_bytes as Field);

src/json.nr

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -308,14 +308,13 @@ impl<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let Max
308308
// See comments in token_flags.nr for more details
309309
// 13 gates
310310
let TokenFlags {
311-
create_json_entry,
312-
is_end_of_object_or_array,
313-
is_start_of_object_or_array,
314-
new_context,
315-
is_key_token,
316-
is_value_token,
317-
preserve_num_entries,
318-
} = TokenFlags::from_field(
311+
create_json_entry,
312+
is_end_of_object_or_array,
313+
is_start_of_object_or_array,
314+
new_context,
315+
is_key_token,
316+
is_value_token,
317+
preserve_num_entries,} = TokenFlags::from_field(
319318
TOKEN_FLAGS_TABLE[cast_num_to_u32(token) + context * NUM_TOKENS],
320319
);
321320

@@ -551,12 +550,8 @@ impl<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let Max
551550

552551
let encoded_ascii =
553552
previous_was_potential_escape_sequence * 1024 + scan_mode * 256 + ascii as Field;
554-
let ScanData {
555-
scan_token,
556-
push_transcript,
557-
increase_length,
558-
is_potential_escape_sequence,
559-
} = ScanData::from_field(JSON_CAPTURE_TABLE[cast_num_to_u32(encoded_ascii)]);
553+
let ScanData { scan_token, push_transcript, increase_length, is_potential_escape_sequence } =
554+
ScanData::from_field(JSON_CAPTURE_TABLE[cast_num_to_u32(encoded_ascii)]);
560555
let mut push_transcript = push_transcript;
561556
let mut scan_token = scan_token;
562557
let mut increase_length = increase_length;
@@ -635,12 +630,8 @@ impl<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let Max
635630
// 2 gates
636631
let capture_flags = JSON_CAPTURE_TABLE[cast_num_to_u32(encoded_ascii)];
637632
// 5 gates
638-
let ScanData {
639-
scan_token,
640-
push_transcript,
641-
increase_length,
642-
is_potential_escape_sequence,
643-
} = ScanData::from_field(capture_flags);
633+
let ScanData { scan_token, push_transcript, increase_length, is_potential_escape_sequence } =
634+
ScanData::from_field(capture_flags);
644635

645636
// 2 gates
646637
let raw: Field = raw_transcript[cast_num_to_u32(transcript_ptr)];

0 commit comments

Comments
 (0)