Skip to content

fail on too short numbers #24

fail on too short numbers

fail on too short numbers #24

GitHub Actions / clippy succeeded Nov 2, 2023 in 0s

clippy

13 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 13
Note 0
Help 0

Versions

  • rustc 1.64.0 (a55dd71d5 2022-09-19)
  • cargo 1.64.0 (387270bc7 2022-09-16)
  • clippy 0.1.64 (a55dd71 2022-09-19)

Annotations

Check warning on line 23 in src/parser/parse_from_text/phone_numbers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of `char::is_digit` with literal radix of 10

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

Check warning on line 23 in src/parser/parse_from_text/phone_numbers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of `char::is_digit` with literal radix of 10

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

Check warning on line 23 in src/parser/parse_from_text/phone_numbers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of `char::is_digit` with literal radix of 10

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

Check warning on line 88 in src/parser/parse_from_text/phone_numbers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `telephone_number` is never used

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>> {
   |               ^^^^^^^^^^^^^^^^

Check warning on line 55 in src/parser/parse_from_text/phone_numbers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `internal_telephone_number` is never used

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>> {
   |    ^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 30 in src/parser/parse_from_text/phone_numbers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `eat_while_digit_or_sdd_but_spare_last_digit` is never used

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(
   |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 26 in src/parser/parse_from_text/phone_numbers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `is_digit_or_ssd` is never used

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 {
   |    ^^^^^^^^^^^^^^^

Check warning on line 22 in src/parser/parse_from_text/phone_numbers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `is_digit` is never used

warning: function `is_digit` is never used
  --> src/parser/parse_from_text/phone_numbers.rs:22:4
   |
22 | fn is_digit(input: char) -> bool {
   |    ^^^^^^^^

Check warning on line 18 in src/parser/parse_from_text/phone_numbers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `is_sdd` is never used

warning: function `is_sdd` is never used
  --> src/parser/parse_from_text/phone_numbers.rs:18:4
   |
18 | fn is_sdd(input: char) -> bool {
   |    ^^^^^^

Check warning on line 15 in src/parser/parse_from_text/phone_numbers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

constant `PHONE_NUMBER_MINIMUM_DIGITS` is never used

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;
   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 14 in src/parser/parse_from_text/phone_numbers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

constant `MAX_LOCAL_LEN` is never used

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?
   |       ^^^^^^^^^^^^^

Check warning on line 13 in src/parser/parse_from_text/phone_numbers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

constant `MAX_AREA_LEN` is never used

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?
   |       ^^^^^^^^^^^^

Check warning on line 12 in src/parser/parse_from_text/phone_numbers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

constant `MAX_COUNTRY_LEN` is never used

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