Skip to content

Commit 5ce146f

Browse files
authored
remove ignore in res_scanner (#7280)
1 parent 9ca9739 commit 5ce146f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
- Fix completion for application with tagged template. https://github.com/rescript-lang/rescript/pull/7278
2525
- Fix error message for arity in the presence of optional arguments. https://github.com/rescript-lang/rescript/pull/7284
2626

27+
#### :house: Internal
28+
29+
- Remove ignore in res_scanner.ml . https://github.com/rescript-lang/rescript/pull/7280
30+
2731
# 12.0.0-alpha.8
2832

2933
#### :bug: Bug fix

compiler/syntax/src/res_scanner.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,13 @@ let scan_number scanner =
257257
8)
258258
| _ -> 10
259259
in
260-
ignore (scan_digits scanner ~base);
260+
let _ : bool = scan_digits scanner ~base in
261261

262262
(* *)
263263
let is_float =
264264
if '.' == scanner.ch then (
265265
next scanner;
266-
ignore (scan_digits scanner ~base);
266+
let _ : bool = scan_digits scanner ~base in
267267
true)
268268
else false
269269
in

0 commit comments

Comments
 (0)