fail on too short numbers #24
Annotations
1 error and 14 warnings
test
Process completed with exit code 101.
|
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
use of `char::is_digit` with literal radix of 10:
src/parser/parse_from_text/phone_numbers.rs#L23
warning: use of `char::is_digit` with literal radix of 10
--> src/parser/parse_from_text/phone_numbers.rs:23:5
|
23 | input.is_digit(10)
| ^^^^^^^^^^^^^^^^^^ help: try: `input.is_ascii_digit()`
|
= note: `#[warn(clippy::is_digit_ascii_radix)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#is_digit_ascii_radix
|
use of `char::is_digit` with literal radix of 10:
src/parser/parse_from_text/phone_numbers.rs#L23
warning: use of `char::is_digit` with literal radix of 10
--> src/parser/parse_from_text/phone_numbers.rs:23:5
|
23 | input.is_digit(10)
| ^^^^^^^^^^^^^^^^^^ help: try: `input.is_ascii_digit()`
|
= note: `#[warn(clippy::is_digit_ascii_radix)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#is_digit_ascii_radix
|
use of `char::is_digit` with literal radix of 10:
src/parser/parse_from_text/phone_numbers.rs#L23
warning: use of `char::is_digit` with literal radix of 10
--> src/parser/parse_from_text/phone_numbers.rs:23:5
|
23 | input.is_digit(10)
| ^^^^^^^^^^^^^^^^^^ help: try: `input.is_ascii_digit()`
|
= note: `#[warn(clippy::is_digit_ascii_radix)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#is_digit_ascii_radix
|
function `telephone_number` is never used:
src/parser/parse_from_text/phone_numbers.rs#L88
warning: function `telephone_number` is never used
--> src/parser/parse_from_text/phone_numbers.rs:88:15
|
88 | pub(crate) fn telephone_number(input: &str) -> IResult<&str, Element, CustomError<&str>> {
| ^^^^^^^^^^^^^^^^
|
function `internal_telephone_number` is never used:
src/parser/parse_from_text/phone_numbers.rs#L55
warning: function `internal_telephone_number` is never used
--> src/parser/parse_from_text/phone_numbers.rs:55:4
|
55 | fn internal_telephone_number(input: &str) -> IResult<&str, String, CustomError<&str>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
function `eat_while_digit_or_sdd_but_spare_last_digit` is never used:
src/parser/parse_from_text/phone_numbers.rs#L30
warning: function `eat_while_digit_or_sdd_but_spare_last_digit` is never used
--> src/parser/parse_from_text/phone_numbers.rs:30:4
|
30 | fn eat_while_digit_or_sdd_but_spare_last_digit(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
function `is_digit_or_ssd` is never used:
src/parser/parse_from_text/phone_numbers.rs#L26
warning: function `is_digit_or_ssd` is never used
--> src/parser/parse_from_text/phone_numbers.rs:26:4
|
26 | fn is_digit_or_ssd(input: char) -> bool {
| ^^^^^^^^^^^^^^^
|
function `is_digit` is never used:
src/parser/parse_from_text/phone_numbers.rs#L22
warning: function `is_digit` is never used
--> src/parser/parse_from_text/phone_numbers.rs:22:4
|
22 | fn is_digit(input: char) -> bool {
| ^^^^^^^^
|
function `is_sdd` is never used:
src/parser/parse_from_text/phone_numbers.rs#L18
warning: function `is_sdd` is never used
--> src/parser/parse_from_text/phone_numbers.rs:18:4
|
18 | fn is_sdd(input: char) -> bool {
| ^^^^^^
|
constant `PHONE_NUMBER_MINIMUM_DIGITS` is never used:
src/parser/parse_from_text/phone_numbers.rs#L15
warning: constant `PHONE_NUMBER_MINIMUM_DIGITS` is never used
--> src/parser/parse_from_text/phone_numbers.rs:15:7
|
15 | const PHONE_NUMBER_MINIMUM_DIGITS: usize = 5;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
constant `MAX_LOCAL_LEN` is never used:
src/parser/parse_from_text/phone_numbers.rs#L14
warning: constant `MAX_LOCAL_LEN` is never used
--> src/parser/parse_from_text/phone_numbers.rs:14:7
|
14 | const MAX_LOCAL_LEN: usize = 15; // TODO find real number?
| ^^^^^^^^^^^^^
|
constant `MAX_AREA_LEN` is never used:
src/parser/parse_from_text/phone_numbers.rs#L13
warning: constant `MAX_AREA_LEN` is never used
--> src/parser/parse_from_text/phone_numbers.rs:13:7
|
13 | const MAX_AREA_LEN: usize = 10; // TODO find real number?
| ^^^^^^^^^^^^
|
constant `MAX_COUNTRY_LEN` is never used:
src/parser/parse_from_text/phone_numbers.rs#L12
warning: constant `MAX_COUNTRY_LEN` is never used
--> src/parser/parse_from_text/phone_numbers.rs:12:7
|
12 | const MAX_COUNTRY_LEN: usize = 3;
| ^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|