32 |
// usage preserves the pattern.
|
33 |
#[allow(clippy::from_str_radix_10)]
|
34 |
i64::from_str_radix(&clean_input(s, "0d"), 10).map_err(Error::Parse)
|
30 |
// usage preserves the pattern.
|
31 |
#[allow(clippy::from_str_radix_10)]
|
32 |
u64::from_str_radix(&clean_input(s, "0d"), 10).map_err(Error::Parse)
|
117 |
fn decimal(input: Node) -> ParseResult<u64> {
|
118 |
#[allow(clippy::from_str_radix_10)]
|
119 |
u64::from_str_radix(input.as_str(), 10)
|
24 |
#[test]
|
25 |
#[allow(clippy::from_str_radix_10)]
|
26 |
fn parse_int_error() {
|
42 |
#[allow(clippy::from_str_radix_10)]
|
43 |
fn match_numeric_entity<'a, I>(iter: &mut Peekable<I>) -> Vec<u8>
|
16 |
#[allow(clippy::from_str_radix_10)]
|
17 |
pub fn parse(s: &str) -> Result<u64> {
|
66 |
#[allow(clippy::from_str_radix_10)]
|
67 |
fn replace_entity_pattern(str: &str) -> Option<String> {
|
31 |
let entity = &capture[1];
|
32 |
#[allow(clippy::from_str_radix_10)]
|
33 |
let code = if entity.starts_with('x') || entity.starts_with('X') {
|
626 |
#[allow(clippy::from_str_radix_10)]
|
627 |
fn parse_file_arg<'n, T>(arg: &str, info: &mut CommandInfo<'n, T>) -> Result<NtfsFile<'n>>
|
17 |
/// Otherwise the string is treated as a decimal integer.
|
18 |
#[allow(clippy::from_str_radix_10)]
|
19 |
pub fn parse_int_decimal_hex<U: Num>(num_str: &str) -> Result<U, <U as Num>::FromStrRadixErr> {
|
112 |
} else if text.starts_with("rgb") || text.starts_with("RGB") {
|
113 |
#[allow(clippy::from_str_radix_10)]
|
114 |
if let Some(cap) = RE_COLOR_RGB.captures(text) {
|
1 |
#![allow(clippy::from_str_radix_10)]
|
1 |
#![allow(clippy::from_str_radix_10)]
|
2 |
use std::cmp::Ordering;
|
1 |
#![allow(clippy::from_str_radix_10)]
|
2 |
#![allow(clippy::field_reassign_with_default)]
|
2 |
// The suggested fix with `str::parse` removes support for Rust 1.48
|
3 |
#![allow(clippy::from_str_radix_10)]
|
4 |
#![deny(broken_intra_doc_links)]
|
10 |
// I prefer to use from_str_radix(..., 10) to explicitly note the base.
|
11 |
#![allow(clippy::from_str_radix_10)]
|
34 |
#![allow(clippy::match_like_matches_macro)]
|
35 |
#![allow(clippy::from_str_radix_10)]
|
36 |
#![allow(clippy::option_as_ref_deref)]
|