mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-16 00:20:46 +00:00
fix clippy::single_char_pattern
This commit is contained in:
parent
7912e33ed6
commit
1f70886b15
10 changed files with 22 additions and 22 deletions
|
@ -307,7 +307,7 @@ impl ast::IntNumber {
|
|||
|
||||
pub fn value(&self) -> Option<u128> {
|
||||
let (_, text, _) = self.split_into_parts();
|
||||
let value = u128::from_str_radix(&text.replace("_", ""), self.radix() as u32).ok()?;
|
||||
let value = u128::from_str_radix(&text.replace('_', ""), self.radix() as u32).ok()?;
|
||||
Some(value)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue