mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Remove a clone
This commit is contained in:
parent
fcebdbb7a7
commit
e7bcd59558
1 changed files with 1 additions and 1 deletions
|
@ -1227,7 +1227,7 @@ fn get_leading_gen(a: &str) -> &str {
|
||||||
let mut p_iter = raw_leading_num.chars().peekable();
|
let mut p_iter = raw_leading_num.chars().peekable();
|
||||||
let mut result = "";
|
let mut result = "";
|
||||||
// Cleanup raw stripped strings
|
// Cleanup raw stripped strings
|
||||||
for c in p_iter.to_owned() {
|
while let Some(c) = p_iter.next() {
|
||||||
let next_char_numeric = p_iter.peek().unwrap_or(&'\0').is_numeric();
|
let next_char_numeric = p_iter.peek().unwrap_or(&'\0').is_numeric();
|
||||||
// Only general numeric recognizes e notation and, see block below, the '+' sign
|
// Only general numeric recognizes e notation and, see block below, the '+' sign
|
||||||
// Only GNU (non-general) numeric recognize thousands seperators, takes only leading #
|
// Only GNU (non-general) numeric recognize thousands seperators, takes only leading #
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue