mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
standardize empty string to String::default()
This replaces "".to_owned() "".to_string() and String::from("")
This commit is contained in:
@@ -476,7 +476,7 @@ fn generatePermutation(index: u32, length: u32, chars: &[char]) -> String {
|
||||
baseNNumber.insert(0, '0');
|
||||
// baseNNumber = "0" + baseNNumber;
|
||||
}
|
||||
let mut prefix = String::from("");
|
||||
let mut prefix = String::default();
|
||||
for ch in baseNNumber.chars() {
|
||||
prefix.push(chars[(ch as isize - '0' as isize) as usize]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user